[Resolved] My logo on the mobile version of my site looks funny

Home Forums Support [Resolved] My logo on the mobile version of my site looks funny

Home Forums Support My logo on the mobile version of my site looks funny

  • This topic has 5 replies, 3 voices, and was last updated 5 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #862467
    Marcos

    Like its being forced to being narrower than what the actual image is. It looks ok on the desktop version.

    Where can I control this? Thanks in advance.

    #862616
    David
    Staff
    Customer Support

    Hi there,

    this CSS is controlling the width of the site logo on desktop and mobile:

    .site-logo {
        max-width:140px;
    }

    The mobile header uses the menu item height to size the logo and to keep it vertically centred, its the two together are causing the problem.

    Try adding this:

    #mobile-header>.inside-navigation {
        align-items: center;
    }
    
    .mobile-header-navigation .mobile-header-logo img {
        height: auto;
        padding: 0 !important;
    }

    I removed the padding as well to make it a little larger.

    #863263
    Marcos

    Thanks for your reply. I’m sorry but, where should I add this code?

    #863302
    Leo
    Staff
    Customer Support

    You can find the CSS David mentioned in the Additional CSS field in the customizer:
    https://docs.generatepress.com/article/adding-css/#additional-css

    #863369
    Marcos

    Thanks! That did the job

    #863396
    David
    Staff
    Customer Support

    Glad we could be of help.

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