Logo gets really small in sticky header

Hi there,

Sometimes when I make changes to the website, my logo gets insanely small in the sticky header (once I start scrolling) on both desktop and mobile. Please see attached screenshot (it's very difficult to see, but the image is still there).

Site: https://www.leukebordspellen.nl/

Is there any way to force it to remain the same size through custom CSS or something different?


Comments

  • Hi,

    Please, go to Betheme -> Theme options -> Global -> Logo, check the option Auto width for Sticky Logo, and check if the problem persists.

    Thanks

  • Sadly this does not solve it

  • In your website source, I noticed a couple of classes added to the logo image which do not comes from our theme.

    Please, turn off all of the plugins, refresh your cache, and check if the problem persists.

    Moreover, if you use a child theme, switch to parent, and recheck it.

    Thanks

  • I managed to solve the problem by using the following CSS and turning on "Remove max-height & padding for Sticky Logo":

    #Top_bar.is-sticky #logo img { max-height: 50px !important; }

    Thanks!

  • Good to hear that.

    If you have any other questions or problems, please, let me know.


    Thanks

  • It seems like the issue isn't entirely resolved, as I now have a slightly different issue.

    The logo is fine in the sticky header now, but the first time I load the page in my mobile browser, the logo gets insanely small again. Once I scroll and the sticky header appears it's fine, until I scroll all the way to the top, when the logo gets very small again.

    This only happens on mobile, it's fine on desktop.

    I have already disabled all plugins and refreshed the cache, but the issue persists.

    Can this be solved through Custom CSS?

  • Please, try the following CSS code:

    #Top_bar .logo .logo-mobile{
     min-width: 150px!important;
    }
    

    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.