Tagged: Header effect
-
AuthorPosts
-
May 12, 2023 at 10:37 am #1407203
Hello guys!
I have create a blurry effect for my header but (usual story) only in my desktop work well. I mean it works also in mobile but when the page is up, it should not be visible (please look at the desktop version). It should be work when start scrolling..May 15, 2023 at 4:38 am #1407411Hey Stilecatalini,
Thank you for the inquiry.
Try to replace the css rule for the header blur effect with the following css code.
#top #header .header_bg { background-color: rgba(20, 21, 23, 0.3); backdrop-filter: blur(8px); } #top #header.av_header_transparency .header_bg { backdrop-filter: none; }
This code should disable the blur effect when the page is not scrolled or when the header is still transparent.
Best regards,
IsmaelMay 15, 2023 at 1:58 pm #1407442I don’t know why???? Doesn’t work!
Please entry in my wordpress…May 18, 2023 at 12:32 pm #1407835Hi Stilecatalini,
The question seems to be asked as well on this thread:
Best regards,
NikkoMay 18, 2023 at 11:40 pm #1407878Nikko, sorry but in mobile we have lost the blur effect! 😅 Please check!
May 19, 2023 at 1:39 am #1407889Hi Stilecatalini,
I see, please try to add this code in functions.php of your child theme:
function add_custom_script(){ ?> <script> (function($){ $(window).scroll(function() { var scroll = $(window).scrollTop(); if (scroll >= 50) { $("#header").addClass("header-scrolled"); } else { $("#header").removeClass("header-scrolled"); } }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_script');
then put this CSS code in Quick CSS:
#top #header.header-scrolled .header_bg { background-color: rgba(20, 21, 23, 0.3); backdrop-filter: blur(8px); }
just adjust the properties as you see fit.
Best regards,
NikkoMay 19, 2023 at 9:51 am #1407920Nikko I can’t add in function.php in my theme editor and I don’t know why! Please check!
May 19, 2023 at 10:11 am #1407921Sorry but I don’t know also if in my WordPress there is a child theme: I have never creste it! And I don’t know how to do..
I’m not expert, I know something and I need of your help!
Please check!May 19, 2023 at 12:54 pm #1407941Are you there Nikko?
May 19, 2023 at 11:44 pm #1407990Hi Stilecatalini,
I install and activated a plugin called WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager on your site and added the PHP code there, then added this in Quick CSS:
@media only screen and (max-width: 989px) { #top #header.header-scrolled .header_bg { background-color: rgba(20, 21, 23, 0.3); backdrop-filter: blur(8px); } }
Please review your site.
Best regards,
NikkoMay 20, 2023 at 12:49 am #1407999What is the difference?! For me it’s the same..
May 22, 2023 at 4:24 am #1408108Hi Stilecatalini,
I have posted screenshot links in private content.
The first one is when the page is not scrolled and the second one is when the page is scrolled.Best regards,
NikkoMay 22, 2023 at 9:33 am #1408113Well. Now it’s ok.
Now can you help me to find a solution in any way to obtain curtain effect like the desktop version?
May 22, 2023 at 11:59 am #1408122Hi Stilecatalini,
Unfortunately, at the moment I don’t have a working solution, but I’ll post here if I can make one.
Best regards,
NikkoMay 26, 2023 at 9:50 am #1408648Nikko please check the blur effect because I don’t know how to do! Thanks
May 26, 2023 at 2:40 pm #1408684Where is your css to obtain blur effect?
May 27, 2023 at 3:03 am #1408734Hi Stilecatalini,
It is in Enfold > General Styling > Quick CSS:
@media only screen and (max-width: 989px) { #top #header.header-scrolled .header_bg { background-color: rgba(20, 21, 23, 0.3); -webkit-backdrop-filter: blur(15px) saturate(0.3); backdrop-filter: blur(15px) saturate(0.3); } }
Best regards,
NikkoMay 27, 2023 at 10:51 am #1408766Nikko I tried to remove and copy again that code but doesn’t work!
Can you try?
Please look at this example of header.
Apart from the blur effect I like to show the header like this and the submenu like I told you in the other topic about SUBMENU.
Thanks.
Waiting for you as soon as possible.
It’s work for me!May 27, 2023 at 11:02 am #1408771Forgot the example. See this.
May 29, 2023 at 12:35 am #1408911Hi Stilecatalini,
Please try Guenni007’s solution on this thread: https://kriesi.at/support/topic/only-have-header-show-when-user-scrolls-up/
Best regards,
NikkoMay 29, 2023 at 9:38 am #1408919Nikko, you have to understand that I cannot modify function.php because I don’t know! If you can do it. So I can add css code…
May 29, 2023 at 3:31 pm #1408946Are you there? It’s impossible to work like this! Some replies sometimes….
May 30, 2023 at 5:54 am #1408983Hi Stilecatalini,
I apologize for the delayed response.
I tried to add the code for you however it seems this is already done and could see it working properly.
The blur effect in header is working properly, I have checked it in mobile.Best regards,
NikkoMay 30, 2023 at 10:20 am #1409003I have done it!!!
Now I have done also the header hide on scroll by Guenny but it works only on desktop. Can you give me the css to make it work also on mobile…..? Check!May 31, 2023 at 9:43 am #1409101Hi Stilecatalini,
The CSS codes given which has @media only screen and (max-width: 989px) includes the mobile.
Also, I have checked it in mobile and it is working, the problem maybe caching on your phone browser and fetching older CSS, please try to clear the cache on your phone’s browser.Best regards,
NikkoMay 31, 2023 at 10:04 am #1409106May 31, 2023 at 10:06 am #1409107The Guenny’code is (767) and not (989) but I tired and doesn’t work..
May 31, 2023 at 10:35 am #1409111just to mention for that blurry effect:
backdrop-filter: https://caniuse.com/css-backdrop-filter
See comment 2 on that for iOS devices like iPhone : Currently only supported with the -webkit- prefix
so do not forget to add to ismaels code that rule!#top #header .header_bg { background-color: rgba(20, 21, 23, 0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } #top #header.av_header_transparency .header_bg { -webkit-backdrop-filter: none; backdrop-filter: none; }
next answer will have some thoughts on your curtain effect …
May 31, 2023 at 10:48 am #1409117Hi Guenny, check my website: now the header works well except for the hide on scroll ON MOBILE.
I entered your code and it works only on desktop:`@media only screen and (min-width: 767px) {
#header {
-webkit-transform: translateY(0px);
transform: translateY(0px);
-webkit-transition: transform 1s ease;
transition: transform 1s ease;
}#header.hide {
/* a little bit more than the header height */
-webkit-transform: translateY(-153px);
transform: translateY(-153px);
-webkit-transition: transform 1s ease;
transition: transform 1s ease;
}
}May 31, 2023 at 10:50 am #1409118About footer curtain effect, now the height is right but doesn’t work ON MOBILE yet!
-
AuthorPosts
- The topic ‘Header effect (only when scrolling down)’ is closed to new replies.