support@gracethemes.com

Reply To: In Navbar also all children of current page are highlighter

Home Support Business Growth WordPress Theme In Navbar also all children of current page are highlighter Reply To: In Navbar also all children of current page are highlighter

#8002

Hi,

this is a bug in the theme, IMHO. I’ve fixed it by adjusting the css selector to only select the link directly below the list item, not ALL links below the list item:

In css/responsive.css, line 90:

.sitenav ul li a:hover, .sitenav ul li.current_page_item > a{color:#0294CF; border:none !important;}
/* .sitenav ul li a:hover, .sitenav ul li.current_page_item a{color:#0294CF; border:none !important;} */

Link: http://youlius-award.de/wp-content/themes/bizgrowth/css/responsive.css?ver=4.9.4

In inc/bizgrowth-customizer.php:

function bizgrowth_custom_css(){
?>
<style type=”text/css”>

a, .blog_lists h2 a:hover,
#sidebar ul li a:hover,
/* .sitenav ul li a:hover, .sitenav ul li.current_page_item a,*/
.sitenav ul li a:hover, .sitenav ul li.current_page_item > a,
.services-wrap .one_third:hover h4,
.services-wrap .one_third:hover .MoreLink,
.slide_info .slide_more:hover,
.blog_lists h3 a:hover,
.cols-4 ul li a:hover, .cols-4 ul li.current_page_item a,
.recent-post h6:hover,
.ReadMore:hover,
.fourbox:hover h3
{ color:<?php echo esc_attr( get_theme_mod(‘color_scheme’,’#0294CF’)); ?>;}

.pagination ul li .current, .pagination ul li a:hover,
#commentform input#submit:hover,
.nivo-controlNav a.active,
h3.widget-title,
.wpcf7 input[type=’submit’]
{ background-color:<?php echo esc_attr( get_theme_mod(‘color_scheme’,’#0294CF’)); ?>;}

/* .sitenav ul li a:hover, .sitenav ul li.current_page_item a, */
.sitenav ul li a:hover, .sitenav ul li.current_page_item > a,
.slide_info .slide_more:hover,
.services-wrap .one_third:hover .MoreLink,
.ReadMore:hover
{ border-color:<?php echo esc_attr( get_theme_mod(‘color_scheme’,’#0294CF’)); ?>;}

</style>
<?php
}

add_action(‘wp_head’,’bizgrowth_custom_css’);

Link: