• Resolved AR1ZONA

    (@ar1zona)


    I would like to get my navbar up into the header area next to the logo. I’ve tried changing columns in the functions.php file, but that didn’t work out yet. I think I need to change up some styling as well.

    Also, while I’m here: how do get a right sidebar for pages, and a left sidebar for posts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author simplethemes

    (@simplethemes)

    The#navigation element comes after the #header, so you’d need to override some functions in your child theme:

    // Reopen Header DIVs
    
    function child_reopen_header() {
    	remove_action('skeleton_header','skeleton_header_close', 5);
    }
    add_action('after_setup_theme','child_reopen_header');
    
    // Apply new markup to #navigation
    
    function skeleton_main_menu() {
    	echo '<div id="navigation">';
    	wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary'));
    	echo '</div><!--/#navigation-->';
    	// close header DIVs
    	echo "</div>"."\n";
    	echo "</div>"."\n";
    	echo "<!--/#header-->"."\n";
    }
    
    add_action('skeleton_navbar','skeleton_main_menu', 1);

    And add some CSS to your style.css:

    #navigation {
    	float: right;
    	top: -40px;
    }

    To swap the sidebars, set your default width to right and override the posts/archive views via body class:

    body.archive.sidebar-right #sidebar,
    body.single-post.sidebar-right #sidebar {
    	float: left !important;
    }
    body.archive.sidebar-right #content,
    body.single-post.sidebar-right #content {
    	float: right !important;
    }

    OK. Tried this. However, it seems to be problematic for the smaller screens. Would you need to change the CSS using Media Query?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Place navbar next to header text’ is closed to new replies.