Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Button in Hero home, not working. Theme Hola

Solved by Pedro M View solution

Started by Pedro M 6 years ago · 1 replies · 421 views
6 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
6 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago