 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
October 4, 2023 at 9:13 am #1421353Hallo, 
 i cannot find a solution for this css. Main menu News is set with a color but when i open a single post in the blog the main menu section isn’t colorized anymore. How can i set the css to keep the main menu with current color?This isn’t working #top #header .av-main-nav > li.current-menu-item > a .avia-menu-text, #top #header .av-main-nav > li.current-menu-item > a .avia-menu-subtext { 
 color: #333333 !important;
 }- 
		This topic was modified 2 years ago by xeovision. 
 October 4, 2023 at 12:51 pm #1421386Hi Sebastian, Can you try this CSS code instead: #top #header .av-main-nav > li.current_page_parent > a .avia-menu-text { color: #333 !important; }Best regards, 
 NikkoOctober 4, 2023 at 1:03 pm #1421388No, does not work October 6, 2023 at 1:18 am #1421558Hi xeovision, Thanks for giving us admin access. 
 The reason it was not working was the News page was not set as the Blog page, I have set it on your site and it worked properly.Best regards, 
 NikkoOctober 6, 2023 at 8:46 am #1421580Strange .. but good to know. 
 Where exactly have yo make the setting? I do not see it in pereferences.I wonder why i have the area image in the single post and not in the overview page? October 8, 2023 at 3:15 pm #1421813Hi, 
 I believe Nikko made the chage at Enfold Theme Options ▸ Theme Options ▸ Where Do You Want To Display The Blog
 I believe the image is added by your custom function in your child theme functions.php:function add_custom_header_image() { if ( is_single() || is_archive() ) { ?> <div class="single-header-image"><br><br></div> <div class="breadcrumbrow" style="background-color: #f8f8f8;"><div class="container" style="padding-top:3px;"> <?php echo do_shortcode('[av_breadcrumbs]'); ?></div></div> <?php } } add_action( 'ava_after_main_title', 'add_custom_header_image', 10 );To show the image and breadcrumb in the above function on the blog page you would add !is_front_page() && is_home() 
 like this:function add_custom_header_image() { if ( is_single() || is_archive() || !is_front_page() && is_home() ) { ?> <div class="single-header-image"><br><br></div> <div class="breadcrumbrow" style="background-color: #f8f8f8;"><div class="container" style="padding-top:3px;"> <?php echo do_shortcode('[av_breadcrumbs]'); ?></div></div> <?php } } add_action( 'ava_after_main_title', 'add_custom_header_image', 10 );I did this for you, please clear your browser cache and check the blog page Best regards, 
 MikeOctober 8, 2023 at 3:50 pm #1421820Great .. now, it works fine .. we can close this ticket … 
 Thx
- 
		This topic was modified 2 years ago by 
- 
		AuthorPosts
- The topic ‘No current color in main menu when open blog post’ is closed to new replies.
