Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1421353

    Hallo,
    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 1 year, 1 month ago by xeovision.
    #1421386

    Hi 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,
    Nikko

    #1421388

    No, does not work

    #1421558

    Hi 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,
    Nikko

    #1421580

    Strange .. 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?

    • This reply was modified 1 year, 1 month ago by xeovision.
    • This reply was modified 1 year, 1 month ago by xeovision.
    • This reply was modified 1 year, 1 month ago by xeovision.
    #1421813

    Hi,
    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,
    Mike

    #1421820

    Great .. now, it works fine .. we can close this ticket …
    Thx

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘No current color in main menu when open blog post’ is closed to new replies.