Site logo

[Resolved] Mobile menu messed up

Home Forums Support [Resolved] Mobile menu messed up

Home Forums Support Mobile menu messed up

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1507585
    Brian

    Hi I have an odd issue. The menu is perfect but often when I go back a page the mobile menu gets bigger. See screenshot.

    Thanks

    #1508034
    David
    Staff
    Customer Support

    Hi there,

    the problem is generally related to the Lazy Loader.
    What plugin are you using to lazy load your images – they generally have an option to exclude images based on a CSS class – you can use this CSS Class: is-logo-image

    #1519541
    Brian

    Sorry for the delay, i forget to tick notify me.

    I am using perfmatters. Their support says

    https://perfmatters.io/docs/lazy-load-wordpress/

    If you have access to add a CSS class to the specific image you are wanting to exclude, simply add the no-lazy class and it should be ignored when the document is being prepared for lazyloading.

    Could you tell me how to apply this class to the logo in GP?

    Thanks

    #1519546
    Leo
    Staff
    Customer Support

    On the page you’ve linked, there is a section “If you are using the GeneratePress theme, you can use this snippet of code:”

    Have you tried that code?

    #1519553
    Brian

    Thanks Leo, but what do i do with the file they link to? There is no instructions on what to do with it. Save it to the theme folder?

    #1519558
    Leo
    Staff
    Customer Support

    You can add that code using one of these methods:
    Adding PHP: https://docs.generatepress.com/article/adding-php/

    #1519574
    Brian

    Thanks Leo I added it to functions.

    #1519575
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.