
-
AuthorPosts
-
January 27, 2017 at 12:34 pm #739336
Hello community :)
I would like hide Logo/Menu –> header on the menu left theme when you are on home and it’s appears when you scroll down.
I found the opposite,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’);it’s work if i reverse .fadeOut by .fadeIn but we can still see the menu when the home page come.
Can you help me please :) Thks
January 31, 2017 at 6:56 pm #740822Hey bout1,
Please refer to this post – http://kriesi.at/documentation/enfold/portfolio-item/intro-to-the-header-configurator/
You can choose to display header when scrolled down as this example – http://kriesi.at/themes/enfold-one-page-portfolio/Best regards,
YigitJanuary 31, 2017 at 7:01 pm #740828Hey Yigit,
Thanks for your answer but i would this result with this theme http://kriesi.at/themedemo/?theme=enfold-overview –> Enfold photography portfolio :)Best THXS
January 31, 2017 at 9:27 pm #740885Hi!
The THeme is the same, it should work with any of the demos.
Can you show us your web site please?Best regards,
BasilisFebruary 1, 2017 at 4:42 pm #741346http://www.silentbutawake.com/
when i start to scroll the menu disappear but no when i load or reloaded the page.Thx U very much :)
February 1, 2017 at 5:50 pm #741374Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.home #header { display: none; }
and then use the code as following in functions.php file
function add_hide_header(){ ?> <script> jQuery(window).scroll(function(){ if(jQuery(this).scrollTop() > 200) jQuery('.home #header').fadeIn('slow'); }); </script> <?php } add_action('wp_footer', 'add_hide_header');
Best regards,
YigitFebruary 1, 2017 at 5:58 pm #741381Its work !!! Thanks a lot, you rock :)
February 1, 2017 at 6:06 pm #741384Hi!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Hide Logo/Menu –> header (left theme) when you are on home’ is closed to new replies.