• There has to be a simple way to approach this.

    I know that within the sidebar.php, I have to change part of this to get it to show the pages on the sidebar. Exactly what to change I can’t figure out.

    <?php /**
    * Pages navigation. Disabled by default because all new pages are added
    * to the main navigation.
    * If enabled: Blix default pages are excluded by default.
    *
    ?>
    <h2>Pages</h2>
    <ul class=”pages”>
    <?php
    $excluded = BX_excluded_pages();
    wp_list_pages(‘title_li=&sort_column=menu_order&exclude=’.$excluded);
    ?>

    <?php */ ?>

    In addition, if I correctly change that, my pages show up in both the header and the sidebar. I want to have a few show up in the header and the rest in the sidebar.

    What is the simplest way to make that happen.

    The site is
    https://www.ncaea.appstate.edu/blog/index.php/

    Thanks for any direction you can provide.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter drowatzky

    (@drowatzky)

    The URI has changed

    https://www.ncaea.appstate.edu

    And the pages that are listed as part of the header won’t show up in Firefox unless the mouse rolls over them.

    What is a person to do?

    Hi drowatzky. I’ve been banging my head against the wall with this one for a few hours now myself!

    *AND* it turns out that we are using the same theme!

    Anyways, I finally found the answer in the theme’s README file. (Of course).

    To save you the trouble — here are the instructions by the author:

    ———-
    Additional Pages
    You can set up as many pages as you like. All pages will be automatically added to the navigation. However if you’ve set up all of the above pages, additional pages will probably break the navigation unless you don’t modify the CSS to make the buttons smaller.
    Secondary Navigation
    In case you’ve got more pages than fit into the main navigation Blix offers a secondary navigation in the sidebar:
    Make backup copies of header.php and sidebar.php
    Open header.php in your text editor of choice
    Look for the following code snippet
    else {
    (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;
    echo ”

    • $page_title
    • \n”;
      }
      and remove it
      Save the modified file
      Open sidebar.php
      Change line 10 from * to */
      Remove line 20 (<?php */ ?>)
      Save the modified file

      ——

      what he DOESN’T tell you — and if you are new to wordpress like I was — is that you ALSO must delete your cache files or you won’t see the results for quite a while!

      You can find this on your dashboard under OPTIONS –> WP-cache. Just click “delete cache” on this page and then reload your home page. Voila! ??

      Enjoy

      -John
      https://www.petaddictsanonymous.com

    sorry — that last post had something bold in it — but I think you’ll get the idea anyways.

    Enjoy!

    -John

    Thread Starter drowatzky

    (@drowatzky)

    That worked like a charm. Thanks, John.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Showing Pages in Header or Sidebar, Not Both’ is closed to new replies.