• Resolved tomnewbie

    (@tomnewbie)


    Hi Guys

    Once again I need your help, the logo on my site I am realising is far to big and distracting, I want to make it smaller and centered.
    Can anyone help please?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Hey @tomnewbie. This can be fixed with some custom CSS. Under Customize > Additional CSS, you can add the following code:
     

    /* Make header logo smaller */
     
    .site-header .custom-logo-link img, 
    .site-header .site-logo-anchor img, 
    .site-header .site-logo-link img {
        max-width: 500px;
    }

     
    If you’d like to learn more about CSS, I highly recommend using the free tutorials at w3schools. Here, you can find the basics of selectors (how to target the right element on the page), and properties (how to change the element on the page).

    Note: This is not what Storefront looks like out of the box, so it would actually be better to change your custom code or the plugin that is changing the header rather than adding this CSS.

    Thread Starter tomnewbie

    (@tomnewbie)

    Thanks that works a treat!But its not responding to mobile now?

    • This reply was modified 5 years, 4 months ago by tomnewbie.
    Jesse Pearson (a11n)

    (@jessepearson)

    Automattic Happiness Engineer

    @tomnewbie It looks like three custom CSS rules have been applied here:


    Link to image: http://cld.wthms.co/tv5BqA

    If you were to remove all the extras and wrap the above code you received in a media query like the below, it should resolve your issues.

    
    @media (min-width: 768px){
      // put code here
    }
    
    Thread Starter tomnewbie

    (@tomnewbie)

    Thanks for this, I am a CSS novice I must confess all I have done is add the code as I have been given it.

    So how should it look when done?

    Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Just compiling that CSS will result in the following:

    /* Make header logo smaller */
    
    @media (min-width: 768px) { 
        .site-header .custom-logo-link img, 
        .site-header .site-logo-anchor img, 
        .site-header .site-logo-link img {
            max-width: 500px;
        }
    }

    Please only add this code once to the custom CSS section. If you want to change the width, just update 500px to whichever size you want.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Logo too big’ is closed to new replies.