Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Button in Hero home, not working. Theme Hola

Solved by Pedro M View solution

Started by Pedro M 7 years ago · 1 replies · 753 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 themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago