WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Centering Title Menu Bar (5 posts)

  1. CaboSunrise
    Member
    Posted 1 year ago #

    Just started using this and have searched for css style sheet code edits that work, yet have found nothing. I did find out that the small space to the left of the menu is dedicated to the Head Logo, which I am not using there.

    I am using ThemeForest's Breeze Theme.

    Site is found HERE

    Header.php has this within it, identifying the logo and menu nav, but I am unsure how to alter it.

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. ]

    <!--BEGIN #header-->
    	<div id="header">
    
    		<!--BEGIN #logo-->
    		<div id="logo">
    			<a>" title="<?php bloginfo( 'name' ); ?>">
    				<?php if( $unisphere_options['logo'] != " ") : ?>
    					<img src="<?php echo $unisphere_options['logo'] ?>" alt="<?php bloginfo( 'name' ) ?>" />
    				<?php else : ?>
    					<?php bloginfo( 'name' ) ?>
    				<?php endif; ?>
    			</a>
    		<!--END #logo-->
    		</div>
    
    		<?php if ( function_exists('wp_nav_menu') ) { // if 3.0 menus exist
    			wp_nav_menu( array(
    				'show_home' => '0',
           			'sort_column' => 'menu_order',
           			'container_class' => 'menu rounded-all',
           			'menu_class' => 'nav',
           	        'theme_location' => 'header_menu',
           	        'fallback_cb' => 'unisphere_header_navigation'
    		    ) );
    		} else {
    			wp_page_menu( 'show_home=0&sort_column=menu_order&menu_class=menu rounded-all' );
    		} ?>	        	
    
    	<!--END #header-->
    	</div>
  2. prionkor
    Member
    Posted 1 year ago #

    Don't edit any theme file directly unless you have to. Check the theme option if it give any option where you can put some extra CSS. If not you can edit the css file of the theme.

    #logo{
           display: none;
    }
    
    #header .menu{
           position:relative;
    }

    That should do it. Not sure why you don't want to show site title/logo though :)

  3. I am using ThemeForest's Breeze Theme.

    You really should contact the theme author for support as well. That's a commercial theme (which we don't support here BTW) and part of what you paid for was support from the author.

    Don't edit any theme file directly unless you have to.

    That's good advice: if you can create a child theme, it's much safer that way.

    http://codex.wordpress.org/Child_Themes

  4. CaboSunrise
    Member
    Posted 1 year ago #

    Thanks for the response! Added the code to a custom add css area the theme gives me and VOILA! It centered....MUCH APPRECIATED!

  5. prionkor
    Member
    Posted 1 year ago #

    Glad it worked :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.