How to make a certain Menu link always active? (with a use of Social Bar on the top right side)
Hello MuffinGroup,
I would like to make a certain link that's always active, to get the possibility of changing a certain style on a:active link in a social menu. When I add that class, it still won't recognize that link as an active one, even if the link itself is a Homepage. (Tried with CSS Hero and !important)
Good Example of what I´m trying to accomplish is also clearly visible at: http://www.vodafone.co.uk/ (they also have the same thing, personal and business)
Best Regards,
Ivan
I would like to make a certain link that's always active, to get the possibility of changing a certain style on a:active link in a social menu. When I add that class, it still won't recognize that link as an active one, even if the link itself is a Homepage. (Tried with CSS Hero and !important)
I am doing a Website for both Personal and Business Users, and that's the reason why I want my homepage button in a social bar, to always stay active while I'm on that domain of personal users, and vice-versa for a domain of business users. (ex. Personal Users | Business Users ) - Orange is active as long as User is on that domain.
Is it possible, to change something in functions.php to make a certain menu always active? If not, do you have any idea how to make that or some better alternative to split the page into two "categories", where one of them shows if it's currently active and gives a link to another one? Or some friendly Plugin which has the possibility to do that and is compatible with BeTheme?
Is it possible, to change something in functions.php to make a certain menu always active? If not, do you have any idea how to make that or some better alternative to split the page into two "categories", where one of them shows if it's currently active and gives a link to another one? Or some friendly Plugin which has the possibility to do that and is compatible with BeTheme?
Good Example of what I´m trying to accomplish is also clearly visible at: http://www.vodafone.co.uk/ (they also have the same thing, personal and business)
Best Regards,
Ivan
Comments
https://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048
This also applies to subfolder on localhost installations.
thank you for your fast response!
After your subdomain explanation, I understand those possibilities even better.
What I still didn't understand so well is, how to apply specific CSS for the specific link on a whole Website, because it affects all list elements of that bar, I always ended up with having both links affected.
I did this now with first-of-type selector:
.header-classic #Action_bar .social-menu li:first-of-type a:visited{
Because after loaded Homepage, it has visited attribute at start (Personal Users link). Ignoring second list item (Business Users link)
Is this approach okay or should I try with something else? Unfortunately, I can't add ID or extra class to existing links, they are just list items, not Muffin Builder Buttons (Menu Links made for "Social Menu Top")
Regards,
Ivan
http://prntscr.com/l4r5mt
Thanks.
Still, thank you for your great support!
Regards