__home__, /, and active class
If I create a menu linked to the homepage single the generated URL is:
example.com/__home__
and the menu is highlighted as active, then if visiting
example.com/
the menu is no longer active and I have the same content in both URLs
If instead I create a custom URL using just / then the menu is always active because it sees all pages a children.
Is there a way around this?
What I would like to be able to do is just link to the homepage single and omit the
__home__
from the generated URL.
Thanks.
I would also like to see a solution to this problem!
This is something I have been having issue with too.
Simple work around for now is to add something like this above your menu template.
{% set homeIsCurrent = (entry.section.handle == 'homepage') %} <li role="presentation" class="{% if homeIsCurrent %}active{% endif %}"> <a href="{{ siteUrl }}">Home</a> </li>
Hey everyone sorry for the radio silence, hoping to address this in the update im planning this week