Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. 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 · 620 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 Andy Miller, 7 days ago
0 114 7 days ago
General · by lynbor, 1 month ago
3 442 2 weeks ago
General · by lynbor, 3 weeks ago
7 562 2 weeks ago
General · by Harry, 2 weeks ago
0 161 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 4 weeks ago