[Support request] SVG Logo on scroll

Home Forums Support [Support request] SVG Logo on scroll

Home Forums Support SVG Logo on scroll

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #430242
    Jason Westbrook

    Hey guys I am showing a blurry and appears to be scrunching the logo so its not staying to size. I have it set for 200×40 pixels.

    Thanks for the tips!

    #430341
    Tom
    Lead Developer
    Lead Developer

    You can upload an SVG as your logo as long as you have a plugin like this installed: https://wordpress.org/plugins/safe-svg/

    You can find more info here: https://docs.generatepress.com/article/adding-svg-logo/

    #430517
    Jason Westbrook

    I have that plugin already installed and css code in the css editor for:

    .site-logo img {
    width: 200px;
    height: 40px;
    }

    But it auto scrunches it and makes it weird.

    #430725
    Leo
    Staff
    Customer Support

    Try this CSS:

    .main-navigation .navigation-logo img {
        height: 40px;
        padding: 0;
    }
    #431082
    Jason Westbrook

    That keeps it working for scroll fine but too big for normal logo. Is there another css code to add to that to control logo size before scrolling?

    #431184
    Tom
    Lead Developer
    Lead Developer

    It looks squished in the sticky nav, try this:

    .main-navigation.navigation-stick .navigation-logo img {
        width: auto;
    }

    Although I’m seeing it as a PNG, which wouldn’t require any of this. Did you remove the SVG?

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