Tagged: secondary menu
-
AuthorPosts
-
July 3, 2021 at 7:41 pm #1308589
Dear Enfold Support
I’m currently redesigning the website of a vacation home (see link to the website in private content) and run into the following issue.
In the header there are a main menu right to the logo and a secondary menu on the top. In the Enfold theme options I selected the page “Aktuelles” to display the blog page. To show my issue, the link to the page “Aktuelles” is placed in the secondary menu and in the main menu but in the end, only the secondary menu should link to “Aktuelles”.
If I go to the page “Aktuelles” by either clicking the link on the secondary menu or on the main menu, both links are marked as a current menu item (text color is black, see screenschot1). Within the HTML code, both have the CSS classes “.current-menu-item” and “.current_page_item” which I can style. As soon as I click on a blog post preview from the blog grid view and go to the single blog post view, only the link in the main menu stays as a current menu item. In the secondary menu, the CSS classes “.current-menu-item” and “.current_page_item” are no longer available and the text color stays white instead of becoming black (see screenshot2). But I want to have the link “Aktuelles” still marked as a current menu item because in the logic of the site architecture the single blog post is a subpage of the page “Aktuelles”.
It seems, that the secondary menu is not programmed in the same way as the main menu when it has to deal with a blog page. Do you have a solution for that issue?
Kind regards
UeliJuly 4, 2021 at 9:53 pm #1308674Hey Ueli,
Thank you for your expectation and screenshots, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#top.single-post #avia2-menu > #menu-item-974 > a { color: #000; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeJuly 6, 2021 at 12:19 am #1308843Hi Mike
Thanks a lot. It does the job!Kind regards
UeliJuly 6, 2021 at 7:49 am #1308887Hi,
Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardMarch 30, 2022 at 4:16 pm #1346609Hi Rikard
You can close the topic
Kind regards
UeliMarch 31, 2022 at 12:40 am #1346667Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Current menu item in secondary menu’ is closed to new replies.