Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1231867

    Ist es möglich das Logo auszublenden sobald man weiter runter scrollt?

    #1231902

    Hey Sven,

    Yes this is possible, please provide a link to the site/page in question so we can look into this further.

    Best regards,
    Jordan Shannon

    #1231923

    Hi, please find the details below:

    #1232489

    Hi,

    We apologize for the delayed response.
    For this type of tweak you will first need a child theme.
    (skip this if you already have one), you can download and find instructions for the child theme in our documentation: https://kriesi.at/documentation/enfold/child-theme/
    Next in the child theme’s functions.php, add this code:

    function hide_logo(){
        ?>
        <script>
            (function( $ ) {
                var $logo = $('#header .logo img');
                
                $(window).scroll(function() {
    			if ( $(this).scrollTop() > 300 ) {
    				$logo.hide(1000);
    			 } else	{
    			  $logo.show(1000);
    			 }
    		 });
                
            }(jQuery));
        </script>
        <?php
    }
    add_action('wp_footer', 'hide_logo', 90);

    300 stands for number of px scrolled before the logo disappears :)
    Best regards,
    Nikko

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