Home>Support>Logo Constraints – Not using Logo in Menu

Logo Constraints – Not using Logo in Menu

So I see lots of help for people using the logo in menu option, but I am not finding any previous answers for people who are not using the menu option and just want a full-width logo.

I created a logo that is 1080×243 but it is always constrained to 1010×227. The element inspector shows:

{code]

[/code]

So where is that width coming from?

Also, when viewing this on a mobile device like an iPhone, the logo is padded and floating above the menu. Is there some way to keep it glued to the menu like it displays on a PC browser? I set the padding to “0” in the theme general settings.

Landscape mode on mobile doesn’t look too bad, but portrait… yeeesh… That’s not to do with the logo, so I’ll do a separate post for that. ;-)

URL: http://www.hacastronomy.org/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 9 days ago kwkirchner

    well apparently I have borked up my code snippet… anyway, I just thought I would add that it appears in the mobile safari browser that the logo is indeed the full width of the screen (portrait and landscape). So really not sure why the PC Safari/Firefox browsers are getting constrained.

    I am using this Custom CSS from another post:

    /* Full header logo */
    
    header#masthead {
    padding: 0 !important;
    background: transparent;
    }
    
    header#masthead hgroup {
    padding: 0 !important;
    }
    
    header#masthead hgroup .logo img {
    width: 1080px;
    }
    
    .main-navigation {
    margin: 0 !important;
    }
    
    body.responsive header#masthead hgroup .support-text, body.responsive header#masthead hgroup #header-sidebar {
    display: none !important;
    }
    
  2. 9 years, 8 days ago Andrew Misplon
    Hi, I Work Here

    Hi Kwkirchner

    The logo 1010px constraint is set in the logo function in /inc/template-tags.php.

    The CSS snippet you’re using predates a Vantage update where hgroup was switched from being a tag to a div class. Please, try the following snippet instead:

    /* Full header logo */
    
    header#masthead {
    padding: 0 !important;
    background: transparent;
    }
    
    header#masthead .hgroup {
    padding: 0 !important;
    }
    
    header#masthead .hgroup .logo img {
    width: 1080px;
    }
    
    .main-navigation {
    margin: 0 !important;
    }
    
    body.responsive header#masthead .hgroup .support-text, body.responsive header#masthead .hgroup #header-sidebar {
    display: none !important;
    }
    

    Let me know how that goes :)

  3. 9 years, 8 days ago kwkirchner

    Ding! Ding! Winner!

    Looks great on PC and mobile now, thanks!

  4. 9 years, 8 days ago Andrew Misplon
    Hi, I Work Here

    Super :) Really glad to hear that helped.

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More