Home>Support>Align logo with menu

Align logo with menu

By cirnu, 9 years ago. Last reply by Daniel, 9 years ago.

Hi there,

and firts of all, congrats for your theme !

I’m using Vantage (to be more accurate, a child theme of the free version) and I’d like to align my logo with my menu. This menu is fully right-aligned, so that I have an empty space on its left part.

I tried to check the “logo in menu” option for Masthead layout, but my logo remains very small. Then I found this on your forum :

header#masthead.masthead-logo-in-menu .logo > img {
max-height: none !important;
}

but it doesn’t change anything.

Then I’m wondering if there is a way yo “cut” the empty left my menu bar and let the logo come here ? And I also wonder if there is a way to vertically center such a menu on a same-colored header ?

Many thanks for your help

URL: http://www.newstart-project.com

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, 7 months ago cirnu

    Partially solved : I set “Masthead Menu” to “Empty menu” (Vantage layout tab) then I added my WP menu to the page. But I can’t customize it using main-navigation stuff, only .menu {…

  2. 9 years, 7 months ago Daniel
    Hi, I Work Here

    Hi Cirnu,

    Sorry for the delayed response.

    I visited your URL and saw that you managed to get the logo to the left side beside the menu. However, what else are you trying to customize on the menu that you are unable to use the main-navigation class in your CSS?

    Please let me know so that I can how best to assist you.

  3. 9 years, 7 months ago cirnu

    Hi,
    don’t worry for the delay, it’s ok ! besides, I still need your help ;) I have 3 major questions :

    #1 : I want the font I use (Helvetica Neue) to be readable by all the browsers. I copy-pasted its bin-code in my CSS file and uploaded the corresponding files on my server. With IE 8 and Chrome 40.0.2214.111 m, the menu displays with Helvetica, no problem. However, with Firefox 35.0.1 and IE 11 , an alternative font displays (a kind of sans-serif font, maybe Arial). How can I solve this ?

    #2 : When the sreen width is too small (or the menu width too large), the menu comes across my logo. How can this phenomenon could be avoided ? For instance, if the screen width is too small, is it possible to stack the logo above the menu ?

    #3 : How can I have a responsive menu ? If the screen width is far too small, is there a way to have a dropdown icon which would display the menu ? Is this feature available in the full version of your theme, and is it possible to activate it without changing my current settings ?

    Many thanks for your great theme, and for your help :)

    Regards

  4. 9 years, 7 months ago Daniel
    Hi, I Work Here

    Hi Cirnu,

    #1 Unfortunately there is no best way to render font types perfectly across all browser versions and systems. These two articles may help you to better understand the limitations http://www.smashingmagazine.com/2012/04/24/a-closer-look-at-font-rendering/
    http://css-tricks.com/font-rendering-differences-firefox-vs-ie-vs-safari/

    #2 & #3 The site is responsive and should resize to fit smaller screens. As you can see in our demo and clicking on the different devices in the top right-hand corner Theme: Free, multi-purpose, responsive WordPress theme from SiteOrigin
    If you having an issue with the responsiveness of the menu and logo only, I assist you with some media query CSS to try and rectify this. Also instead of a drop-down icon the menu is set to one link ‘Navigation’ on smaller screens as you can see in the demo.

    Cheers! :)

  5. 9 years, 7 months ago cirnu

    hi, thanks for your reply

    #1 : ok I’ll try to improve my font rendering, otherwise I’ll use a google font (as far as I’m concerned, google font usually display better than imported fonts)

    #2 #3 : yes ok I saw the demo display for other screens, but my menu is different than yours, because I don’t use the built-in one. The reason why I did so : when I used the built-in menu, I was not able to align properly the menu and the logo. I didn’t want them to be one above the other, but on the same raw. So I’m dealing with a “custom” menu. Let me explain my problem with more accuracy :

    – when the screen is big enough, the logo and the menu are aligned
    – when the screen is smaller (or the menu is bigger, for instance if another font than helvetica neue is displayed), the menu comes across the logo
    – when the screen is small enough, the logo is stacked above the menu

    Hence, my problem comes from the behavior of my elements in the intermediate step. At the end of this post I’ll provide some CSS :)

    Ok for the Navigation menu, is it available with custom menus ? And is it available on the free version ?

    Many thanks again for your help, I really appreciate

    Here is the part of the CSS I use for the website’s menu :

     
    .menu li {
      text-transform: uppercase;
      font-family: HelveticaNeueLTStd-HvCn, Arial, sans-serif;
      font-size: 16px;
      padding-top: 15px;
      padding-bottom: 15px;
      padding-right: 5px;
      padding-left: 5px;
      float: left;
      letter-spacing: 1.5px;
      background: grey;
    }
    
    #header-sidebar .widget_nav_menu {
    background: #000;
    }
    
    #header-sidebar .widget_nav_menu ul.menu > li {
    margin-right: 0px;
    padding: 0;
    }
    
    #header-sidebar .widget_nav_menu ul.menu > li > a {
    color: #fff;
    padding: 15px;
    }
    
    .menu li a:hover {
    background: #DF0E7A;
    }
    
    .menu li.current_page_item a {
    background: #DF0E7A;
    }
    
    // Right align the menu
    .main-navigation ul {
    text-align: right;
    }
    
  6. 9 years, 6 months ago Daniel
    Hi, I Work Here

    Hi Cirnu,

    You will definitely need to add media query CSS to resize the menu or logo for different screen sizes. Here is information on media query CSS http://www.w3schools.com/cssref/css3_pr_mediaquery.asp
    It is very easy to use and you will need to simply adjust the size of the menu for smaller screens.

    Please let me know if you require further assistance.

  7. 9 years, 6 months ago cirnu

    Hi,
    I’ll have a look, thanks !

    But I have two 15.6″ machines, one with Chrome and Vista, the other with Chrome and Win 8. Both of the Chrome browsers are the same : 40.0.2214.115 m. On the Vista laptop, the menu displays in Helvetica and is aligned with the logo. On the Win 8 laptop, the menu displays in a kind of Arial and comes across the logo (the menu width is greater). Do you think it is only a size problem ?

    Regards

  8. 9 years, 6 months ago cirnu

    the problem is exactly the same for the front page slider and the text attached to it : when the screen is large enough, everythink is ok. When the screen gets smaller, the text goes under the slider (the slider’s size is fixed). When the size begins to be very small, the simage and the text are stacked : the image is above the text.

    and as this problem is the same as for my header, I wonder if it can be solved with media query CSS, or in a simpler way

  9. 9 years, 6 months ago cirnu

    The slider and the text have a nice responsive behavior now, only my logo vs. menu problem remains. How can I make them stack upon each other when the screen width reaches a certain amount ?

    regards

  10. 9 years, 6 months ago Daniel
    Hi, I Work Here

    Hi Cirnu,

    I visited your site on mobile and the logo is stacked on top of the menu. So it is responding to the smaller screens.
    Please correct me if I’m mistaken.

    Cheers!

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