Great theme component. Thank you.
Is there a way to hide the links if the user has to login to view the site content?
This is what my site looks like on the login page with the theme enabled.
Great theme component. Thank you.
Is there a way to hide the links if the user has to login to view the site content?
This is what my site looks like on the login page with the theme enabled.
Until there is a cleaner way to do it via an upgrade of the component, you can add this css lines in your theme
.anon .custom-header-links {
display: none;
}
This works a treat!!!
If any of you amazing coders out there could add the ability per link to make visible to
we would be extremely grateful!!!
Everything is still doable via css, but you have to create a line for each link which can take some time.
If we take the demo for this component :
https://theme-creator.discourse.org/theme/Johani/custom-header-links
I’ll try your 3 scenarios with the Tech example.
Ex #1 visible to logged in users
.anon .headerLink.tech {
display: none;
}
Ex #2 visible to not logged in users
.headerLink.tech {
display: none;
}
.anon .headerLink.tech {
display: inline-block;
}
Ex #3 visible to all users : don’t add anything
Replace text with the key word of your menu.
I’ll take a last example to help you. The css class to use for the item menu Your Vote Counts! is .headerLink.your-vote-counts