Tagged: active post
- This topic has 19 replies, 2 voices, and was last updated 7 months, 2 weeks ago by
sujeet.
-
AuthorPosts
-
March 4, 2025 at 2:34 pm #339103
effess
ParticipantCatch Kathmandu Pro at https://rebecca-rosenberg.com … “Blog” is in the menu, but does not change color when post is active. Can you give me the CSS for that, please? Or did I miss a setting?
March 4, 2025 at 11:53 pm #339105sujeet
KeymasterHi @effess,
Please add the following css code to Dashboard > Appearance > Customizer > Additional CSS. Thank you.
.secondary-navigation .current_page_parent > a { background-color: #e2d3b1; color: #000000; }Regards,
SujeetMarch 5, 2025 at 12:12 am #339108effess
ParticipantGreat! Thank you!
March 5, 2025 at 12:58 am #339109effess
ParticipantHowever, now when the home page is active, both Home and Blog change color.
March 5, 2025 at 1:36 am #339111sujeet
KeymasterHi @effess,
Can you please try adding normal blog page in the menu along with other menu items? This will simply work the active colors as does for others. Just create a new ‘Blog’ page and add that to your menu.
And please ignore that css code that I sent you. Thank you.
Regards,
SujeetMarch 5, 2025 at 1:50 pm #339117effess
ParticipantWhat is a normal blog page? Are there directions somewhere? I created a page called Blog, and under “Reading” chose that page for posts. We don’t want posts on the home page.
March 5, 2025 at 2:24 pm #339119effess
ParticipantGot it! Thanks!
March 5, 2025 at 2:57 pm #339120effess
ParticipantBlog page is now shows active in the menu, but is there a way for the individual posts to also show BLOG in the menu? The CSS you sent works, but also shows when home page is active.
March 5, 2025 at 4:55 pm #339121effess
ParticipantI thought it was working, but it’s not. What am I missing? (cache & browsing data deleted)
1) new page title: Blog
2) template: Blog
3) publish
4) settings/reading/posts page: Blog
5) Blog (posts page) added to menu but not showing activeMarch 6, 2025 at 12:19 am #339125sujeet
KeymasterHello @effess,
I got really surprised since there is everything fine in our end. I put both normal blog page and category blog in the menu and both seems to have active colors. I’ve attached both screenshots.
I am bit unsure what you have done. All other pages in the menu are fine but just a blog is having different active class “current_page_parent”. When you are in other pages, there you will find an active class “current-menu-item”.
Please try removing the current blog item from menu and add the new blog page to the menu list from menu. See screenshot.
If this didn’t help, I will contact you through email. Thank you.
Regards,
SujeetMarch 7, 2025 at 2:53 pm #339168effess
ParticipantStill not working. It DOES work if I put a post in the menu as a sub item, but we don’t want posts in the menu, just the posts PAGE.
March 9, 2025 at 1:02 am #339180sujeet
KeymasterHello @effess,
For now, please add the following css code to resolve the issue. This should fix the active colors.
.archive.category .secondary-navigation .current_page_parent > a { background-color: #e2d3b1; color: #000000; }Regards,
SujeetMarch 9, 2025 at 4:28 pm #339193effess
ParticipantThank you so much!!!
March 10, 2025 at 12:25 am #339194sujeet
KeymasterYou’re most welcome !
Regards,
SujeetMarch 11, 2025 at 2:51 pm #339205effess
ParticipantIs there a way for the parent of an active post to highlight in the menu? (The “Blog” menu item, which has no sub-items.)
March 12, 2025 at 1:17 am #339207sujeet
KeymasterHello @effess,
The parent of an active post is already highlighted in the menu. You please add sub items in the Blog menu item and if didn’t work, I will check for the code for you. Thank you.
Regards,
SujeetMarch 13, 2025 at 4:51 pm #339217effess
ParticipantWe DO NOT want individual posts in the menu! Like this site: https://parkridgeclassicfilm.com/2022/03/
March 14, 2025 at 2:42 am #339219sujeet
KeymasterHello @effess,
Please try adding this code. Hope this works for you.
.archive.category .secondary-navigation .current_page_parent > a, .single .secondary-navigation .current_page_parent > a { background-color: #e2d3b1; color: #000000; }Regards,
SujeetMarch 14, 2025 at 7:12 pm #339227effess
ParticipantYes! This is great. Thank you! Only thing is that the title attribute (hover) does not appear in the menu.
March 17, 2025 at 5:29 am #339237 -
AuthorPosts
- The topic ‘active post color in menu’ is closed to new replies.





