Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Button in Hero home, not working. Theme Hola

Solved by Pedro M View solution

Started by Pedro M 7 years ago · 1 replies · 577 views
7 years ago

Hi, everybody.

I'm making one website with the theme https://github.com/devlom/grav-theme-hola, from the page of themes in grave site, and it has an optional button in the home section to link to another page or external site, but it doesn't work propertly and I don't know what's happen.

However, if I open the link with de secondary menu, with mouse right button, the page opens in other tab correctly.

The code which does that possible is:

TWIG
                {% if page.header.button1Text %}
                    <a href="{{ page.header.button1Link }}" class="smoothscroll btn btn--stroke">
                        {{ page.header.button1Text }}
                    </a>
                {% endif %}

You can check it in grav.juanvillen.es

hola_button1|690x278 hola_button2|690x257

Thank you, very much

last edited 02/14/20 by Pedro M
7 years ago Solution

Hello, again

I've deleted the class smoothscroll from the code and it works now.

Regards.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
4 179 2 days ago
General · by lynbor, 5 days ago
2 119 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 246 3 weeks ago