Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #686274

    Hi. When putting this:
    function add_hide_header(){
    ?>
    <script>
    jQuery(window).scroll(function(){
    if(jQuery(this).scrollTop() > 200) jQuery(‘#header_main’).fadeOut(‘slow’);
    if(jQuery(this).scrollTop() < 200) jQuery(‘#header_main’).fadeIn(‘slow’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_hide_header’);

    into the Child Functions.php, It crashes the site getting HTTP error 500.
    Thanks,
    OPVAB

    #686921

    Hi opvab,

    That’s not good, are you sure your code is working as it should?

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.