
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….
-
AuthorPosts
- You must be logged in to reply to this topic.