This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Logo Constraints – Not using Logo in Menu

Resolved 4 replies premiumthemetheme-vantage
10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. kwkirchner 10 years, 5 months ago

    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. Andrew Misplon Staff 10 years, 5 months ago

    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. kwkirchner 10 years, 5 months ago

    Ding! Ding! Winner!

    Looks great on PC and mobile now, thanks!

  4. Andrew Misplon Staff 10 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread