Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question re sidebar nav #102

Open
billdoy opened this issue Nov 25, 2012 · 6 comments
Open

Question re sidebar nav #102

billdoy opened this issue Nov 25, 2012 · 6 comments

Comments

@billdoy
Copy link

billdoy commented Nov 25, 2012

Hi,

Love the svbtle theme guys! I have a couple questions:

  1. Is there a way to control what pages appear in the navigation in the left column? It seems the default is to include all pages.

  2. How would I add a simple footer? I just need space to put in a one line disclaimer.

Thanks!
Bill

@jorisoverzet
Copy link

I'm having the same issue 1)
All published pages are included in the navigation column and not sortable.

@samdoidge
Copy link
Contributor

  1. The file: wp-content/themes/svbtle/header.php contains the code to pull all pages in:
    $mypages = get_pages( );

        foreach( $mypages as $page ) {      
            $content = $page->post_content;
            if ( ! $content ) // Check for empty page
                continue;

You can exclude pages by using the on get_pages() exclude parameter and adding page ID's in: like so:

get_pages(array('exclude' =>  "3,7")); 

You can also change sorting with the sort_column and sort_order parameters, from the get_pages documentation

@dasrecht
Copy link
Contributor

Another way to solve this could be the usage of the wordpress provided menu functionality. http://codex.wordpress.org/Appearance_Menus_Screen

would be much easier than excluding a bunch of pages manually.

@gserafini
Copy link

I second @dasrecht suggestion. Using built-in WordPress menu functionality would be excellent, so the theme does not have to be hacked.

@samdoidge
Copy link
Contributor

@dasrecht, @gserafini +1. If you can do it in a way without hardcoding values into the file, you should (updating and maintenance will be a lot easier). I haven't had experience of Wordpress menu's previously.

@dasrecht
Copy link
Contributor

dasrecht commented Jan 1, 2013

This one can be closed since the Pullrequest is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants