[Theme SimpleCorp] Changing Header
-
I’m trying to put logo in the middle of the page (central position) and menu in the next line (also central position), tried already everything with margin-left:auto and margin-right:auto but it doesn’t work….
code looks like this right now..
<header role="banner" id="header" class="clearfix"> <div> <!-- begin #logo --> <?php if ( !of_get_option('sc_clogo')== '') { ?> <hgroup id="logo-wrapper"> <h1><a id="logo" href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img src="<?php echo of_get_option('sc_clogo'); ?>" alt="<?php echo bloginfo( 'name' ) ?>" /> </a></h1> </hgroup> <?php } else { ?> <hgroup id="logo-wrapper"> <h1><a id="logo" href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php if( !of_get_option('sc_clogo_text')== '') { echo of_get_option('sc_clogo_text'); } else { bloginfo( 'name' ); } ?> </a></h1> <h5 id="tagline"><?php bloginfo('description'); ?></h5> </hgroup> <?php }?> <!-- end #logo --> </div> </header> <body> <div id="meni"> <!-- begin #topMenu --> <div id="navigation-wrapper" class="clearfix"> <select id = "responsive-main-nav-menu" onchange = "javascript:window.location.replace(this.value);"><option selected="selected" ><?php _e('Menu', 'site5framework'); ?></option></select> <nav id="main-navigation" class="main-menu"> <?php site5_main_nav( array( 'container' =>false, 'menu_class' => '', 'echo' => true, 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0 ) ); // Adjust using Menus in WordPress Admin ?> </nav> <style> main-navigation{ height:20px; padding:0px 0 20px 0; width:100%; } </style> </div> <!-- end #topMenu --> </div> </div> </body>
webpage: ninora.si
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Theme SimpleCorp] Changing Header’ is closed to new replies.