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

    Hi,

    we are using the latest version of Enfold (4.7.6.4). On our homepage the shrinking/fixed header is not working, although it is working on all subpages.
    This problem also occurs in other browsers than Chrome. I have attached the URL in the notes – see for yourself.

    What could be causing this?

    Best
    David

    #1263635

    Hi David,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1263884

    here we go :)

    #1264146

    Hi,

    Thanks for that. You have this function in your child theme which removes the sticky class:

    /**
     * Remove sticky header on frontpage
     */
    function remove_sticky_header_on_frontpage(){
        if( is_front_page() ) {
            ?>
            <script>
                jQuery(window).load(function(){
                    jQuery('html').removeClass('html_header_sticky');
                });
            </script>
            <?php
        }
    }
    add_action('wp_footer', 'remove_sticky_header_on_frontpage');

    If you remove that then it should work as expected.

    Best regards,
    Rikard

    #1264165

    Thanks for you help!

    • This reply was modified 3 years, 11 months ago by maucherOnline.
    #1264410

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1264433

    You can close it. Thank you.

    #1264628

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Shrinking fixed header not working on homeplage but on all subpages’ is closed to new replies.