what exactly have you added to the styles?
try:
.side_box .current-menu-item a { color: #ff00ff; }
http://codex.ww.wp.xz.cn/Function_Reference/wp_nav_menu#Menu_Item_CSS_Classes
hi alchymyth & thanks so much for your reply.
i tried that but to no avail…
here’s the code i have added to my css. it might be shoddy. i was sort of trying everything.
#sidebar { float: right; width: 183px; }
a:active { color: #ff00ff; text-decoration: none; }
a:hover { color: #ff00ff; text-decoration: none; }
.side_box ul a:active { color: #ff00ff; text-decoration: none; }
#projects_menu a:link { color: #666666; }
#projects_menu a:hover { color: #ff00ff; text-decoration: none; }
#projects_menu a:active { color: #ff00ff; text-decoration: none; }
if the code’s ok then i think the problem, in non-technical terms(!), is that there is a disconnect between the side bar & the actual post that you’ve clicked into… a post can be reached either by clicking on the image on the front pg or category pg, or by clicking on a link in the side bar. the side bar is a custom menu i literally created by inserting the urls for each of the posts & making a list that way.
just attempted making another custom menu, this time with links to pages. but again the active page isn’t coming up #ff00ff.
any idea where i’m going wrong? cheers.
the pseudo class :active does not mark the current post;
for the css classes that are added to a current menu item, see the linked Codex chapter http://codex.ww.wp.xz.cn/Function_Reference/wp_nav_menu#Menu_Item_CSS_Classes
i tried that but to no avail…
you might need to clear the browser cache if you want to see any changes to the formatting immediately…
ahh! thank you!!! amazing, it worked once i cleared the cache. thanks so much 🙂
actually could i please ask you something else?
each post on my site belongs to a number of different categories. the main site nav consists of these categories. is there anything could i add to the css if i want each of the relevant categories in the nav to be active (#ff00ff) when you’re in a particular post?
e.g. on this post, the categories “typography” & “print” in the nav would appear #ff00ff.
i tried this code but it’s clearly wrong:
.menu-item-object-category a { color: #ff00ff; }
thanks again for your help!
thanks to @songdogtech (link) who found this post http://designisphilosophy.com/tutorials/highlight-current-page-or-category/
example:
#menu-category_menu .current-post-parent a { color: #ff00ff; }
just want i needed thanks. much obliged.