Post by khatija888 on Aug 30, 2023 3:55:13 GMT
Reply wpbeginnerAug at am mriulian Look in the tutorial above the classes for current pages are already defined In the header code you need to define the menu container ID and container class follow the article as it says and it will work. Reply mriulianAug at pm Just trying to be more clear this is my code in the function page if functionexistsregisternavmenus registernavmenus array mainNav in the header page mainnavmenu in the css file.
current backgroundcolor AA color fff textdecoration none How do I apply this class to my navigation very easy in a static html page but apparently pretty complicated in wordpress. Thanks in advance Reply mriulianAug at pm This is what I did but it doesn t work. I Buy Email Database registered my menu in the functions page and then I called it from the header page as my main navigation. Now I have a . current class in my stylesheet to be applied to the current page but it is not obvious how to do that. Can you help with a suggestion Reply wpbeginnerAug at am.
The way WordPress navigation menus work it will automatically know which page is the current one.. Reply iiriminaAug at pm Thank you for mentioning about the css classes in the screen options panel. navigation is how to style the nav menu so that each menu item gets a specific background color when you arrive at a certain page. You mention creating a class such as .currentpageitem in your style sheet. But how to apply this class in the header.php Reply RickApr at pm Where can I get further more detailed info on how to add the icons to the menu names.
current backgroundcolor AA color fff textdecoration none How do I apply this class to my navigation very easy in a static html page but apparently pretty complicated in wordpress. Thanks in advance Reply mriulianAug at pm This is what I did but it doesn t work. I Buy Email Database registered my menu in the functions page and then I called it from the header page as my main navigation. Now I have a . current class in my stylesheet to be applied to the current page but it is not obvious how to do that. Can you help with a suggestion Reply wpbeginnerAug at am.
The way WordPress navigation menus work it will automatically know which page is the current one.. Reply iiriminaAug at pm Thank you for mentioning about the css classes in the screen options panel. navigation is how to style the nav menu so that each menu item gets a specific background color when you arrive at a certain page. You mention creating a class such as .currentpageitem in your style sheet. But how to apply this class in the header.php Reply RickApr at pm Where can I get further more detailed info on how to add the icons to the menu names.