Color of the current page link
-
Hello,
I’d like to force the color of the current page link, located in the primary sidebar : having inserted the following commands in the child 2014 theme style.css, I can’t get any change.
Would anybody tell me what’s missing ? (I’m working on a local installation of WP)..current-menu-item a { color: #55d737 !important; } .current-menu-item a:hover { color: #55d737 !important; }
Typically, here is the page driving “Le son du musicien” link of which I want to force the color when this page is displayed :
<div id="secondary"> <h2 class="site-description">de Guy Robert</h2> <nav role="navigation" class="navigation site-navigation secondary-navigation"> <div class="menu-au-fait-container"><ul id="menu-au-fait" class="menu"><li id="menu-item-18" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-18"><a href="https://www.lhappyjazz.com">Venez à L’Happy Jazz</a></li> </ul></div> </nav> <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary"> <aside id="tag_cloud-6" class="widget widget_tag_cloud"><h1 class="widget-title">Vos mots-clés</h1><div class="tagcloud"></div> </aside><aside id="nav_menu-8" class="widget widget_nav_menu"><h1 class="widget-title">Le son</h1><div class="menu-le-son-container"><ul id="menu-le-son" class="menu"><li id="menu-item-151" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-26 current_page_item menu-item-151"><a href="https://localhost:8888/wordpress/le-son-du-musicien/">Le son du musicien</a></li>
Thanx in advance,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Color of the current page link’ is closed to new replies.