Link active class is not working.

sakinur_rahman
Tourist
6 1 0

I have added a menu on my store blog page. And I am using this condition to add a css class. But it's not working. Please see the screenshoot.

<a class="{% if link.active %}site-nav--active{% endif %}" href="{{ link.url }}">
{{ link.title }}
</a>

 

Page link here: https://neophytofoods.com/blogs/recipes

Screenshot_320.pngScreenshot_319.png

0 Likes