Ist es möglich das Logo auszublenden sobald man weiter runter scrollt?
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
Hi, please find the details below:
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