Tagged: , , ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #308779
    #308814

    Hey christopherd6!

    Please go to Appearance > Editor and open Functions.php file and add following code

    function add_custom_header(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.logo img, .logo a, .av-main-nav > li > a, #header_main .container').addClass('small-header');
    if ( jQuery("body#top").hasClass("home") ) {
      jQuery(".logo img, .logo a, .av-main-nav > li > a, #header_main .container").removeClass('small-header') };
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_header');

    then add following code to Quick CSS in Enfold theme options under General Styling tab

    .small-header { height: 58px!important; line-height: 58px!important; max-height: 58px!important; }

    Regards,
    Yigit

    #308896

    Thanks for the quick reply.
    This fix causes stutter in header on post pages and leaves a blank bar below the menu. is there something else i can do?

    #308904

    Hey!

    Please add following code to Quick CSS as well

    div#main { padding-top: 90px!important; }
    .home #main { padding-top: 147px!important; }

    Cheers!
    Yigit

    #308950

    Thanks! That removes the additional bar on desktop but still visible in mobile. Is there anything i can do to improve the stutter/delay between the transition from larger into small when opening into a post?

    • This reply was modified 10 years, 3 months ago by AMseptemeber.
    #309084

    Hey!

    Thank you for the update.

    The bar on mobile should be remove by now. Try to remove browser cache then reload the page a few times. If I am not mistaken, you can only see the stutter when you’re using the mouse scroll. I don’t think we can do anything about it. You can try scrolling the page using the scroll bar and you won’t experience the delay/stutter.

    Regards,
    Ismael

    #309085

    Thank you for your assistance!

    #309275

    Hi!

    You are welcome, glad we could help!

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘help to shrink logo on homepage only, smaller logo on posts’ is closed to new replies.