Remove logo from top bar and center menu items

HI,
For one of my sites I need a menu bar without a logo and the menu items centered in it.
I was able to comment out the div that shows the logo in the file header-top-area.php (right after the <!-- .logo --> comment in the file) But I spent 2 hours trying to get to center the menu in the remainging space instead of being aligned left or right. But I had no success.
Can you point me toward a solution?

Comments

  • Hi,

    please send us link to page where you would like to center menu items first and we will see if it's possible.
  • Hi, here it is. 

    Its not officially live yet. We are bulding it under another of our site for now. 
    This simple page is meant to be a springboard so our customers choose to the trade show they want info on.


  • Ok, thanks. So to set up menu items on this site, you need to use the following extra css:
    #Top_bar .menu > li { display: inline-block !important; float: none !important; }
    #Top_bar .menu_wrapper { text-align: center !important; width: 100% !important; }
  • edited June 2016
    Its' working. My menu is now centered. 
    Now the only problem left for this page is that when on a mobile the menu button overlaps the content instead of being in his own space.
    I am guessing that is is because there is no logo to take the place.
    I tried putting an empty 1X50px logo but it doesn't work because it pushes the menu down when on a desktop.
    Is there a section of the header-top-area.php that I could tweak to fix this?

    For now this section of the page is commented out:

    ">
    <?php
    // Logo | Options
    $logo_options = mfn_opts_get( 'logo-link' ) ? mfn_opts_get( 'logo-link' ) : false;
    $logo_before = $logo_after = '';

    ... up to...

    echo '<img class="logo-main scale-with-grid'. $class .'" src="'. $logo_src .'" alt="'. mfn_get_attachment_data( $logo_src, 'alt' ) .'" '. $width .'/>';
    echo ''. mfn_get_attachment_data( $logo_sticky, 'alt' ) .'';
    echo ''. mfn_get_attachment_data( $logo_mobile, 'alt' ) .''; } echo $logo_after; ?>

  • We are sorry but what you want to do know, won't be possible without files customization unfortunately. And because files customization are not the part of support, you need to contact with your web developer.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.