Tagged: 

Viewing 30 posts - 1 through 30 (of 51 total)
  • Author
    Posts
  • #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..

    #1407411

    Hey 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,
    Ismael

    #1407442

    I don’t know why???? Doesn’t work!
    Please entry in my wordpress…

    #1407835

    Hi Stilecatalini,

    The question seems to be asked as well on this thread:

    Best regards,
    Nikko

    #1407878

    Nikko, sorry but in mobile we have lost the blur effect! 😅 Please check!

    #1407889

    Hi 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,
    Nikko

    #1407920

    Nikko I can’t add in function.php in my theme editor and I don’t know why! Please check!

    #1407921

    Sorry 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!

    #1407941

    Are you there Nikko?

    #1407990

    Hi 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,
    Nikko

    #1407999

    What is the difference?! For me it’s the same..

    #1408108

    Hi 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,
    Nikko

    #1408113

    Well. Now it’s ok.

    Now can you help me to find a solution in any way to obtain curtain effect like the desktop version?

    #1408122

    Hi Stilecatalini,

    Unfortunately, at the moment I don’t have a working solution, but I’ll post here if I can make one.

    Best regards,
    Nikko

    #1408648

    Nikko please check the blur effect because I don’t know how to do! Thanks

    #1408684

    Where is your css to obtain blur effect?

    #1408734

    Hi 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,
    Nikko

    #1408766

    Nikko 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!

    #1408771

    Forgot the example. See this.

    #1408911

    Hi Stilecatalini,

    Please try Guenni007’s solution on this thread: https://kriesi.at/support/topic/only-have-header-show-when-user-scrolls-up/

    Best regards,
    Nikko

    #1408919

    Nikko, 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…

    #1408946

    Are you there? It’s impossible to work like this! Some replies sometimes….

    #1408983

    Hi 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,
    Nikko

    #1409003

    I 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!

    #1409101

    Hi 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,
    Nikko

    #1409106

    Now…

    #1409107

    The Guenny’code is (767) and not (989) but I tired and doesn’t work..

    #1409111

    just 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 …

    #1409117

    Hi 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;
    }
    }

    #1409118

    About footer curtain effect, now the height is right but doesn’t work ON MOBILE yet!

Viewing 30 posts - 1 through 30 (of 51 total)
  • The topic ‘Header effect (only when scrolling down)’ is closed to new replies.