Many WordPress themes these days use a dynamic navigation bar to display the navigation for pages. This is great, except when you have a ton of pages in your blog and you only want to display a select few.
The way to dictate which pages you want to show is pretty simple. I will use the WP Presstige theme code as an example. Find the following line of code in the header.php file of the WP Presstige theme:
We need to add the “include” parameter to that line of code, which will allow us to specify which pages we want listed in the navigation. See the updated code:
What I did was add the following line to the beginning of the code:
include=1,2&
The 1 and 2 are page IDs so by doing this, I’ve specified that I want to include page 1 and 2 in the navigation.
that worked beautifully. im changing font style, but cant find where to change the font used in the upper, right, and lower sidebar body. in the css, i made body text georgia, which is what i want for the blogs only…i want the lists to be in arial so it looks streamlined.
thanks!
actually, i love the font you use on here…do you mind telling me what it is?
Century Gothic
If you want to change the fonts in the sidebar you will have to add the font declaration to each of the sidebar IDs in style.css – #sidebar-top, #sidebar-top2, #sidebar-main and #sidebar-bottom. The headings for all the widgets are in Trebuchet MS, so you can do a find and replace on all those if you want to switch them.
sam, i can’t thank you enough for all of your help today. your theme is brilliant and it even solved some issues i couldn’t resolve previously…must’ve been a prob with that theme.
i’ve pretty much finished setting up the site…just can’t figure out exactly where to change the color for links on each blog for tag list and read more. i’m done tweaking for today, but i’m going to sleep with a big smile on my face cuz you made my day.
all the best
nathalie
Great choice on the font, it’s nice to see more options than just verdana and times.
I did the “include=1,2,3,4&sort” but all it did was take the pages out of the top navigation bar across the webpage? I want those links on the top
navigation bar so how do i get them to display there with only the ones I want which is 1, 2, 3, &4?
Also all the links show up on the side navigation? Where as I only want 1, 2, 3, and 4 to show up?
Help!
thanks,
Peter
Hey Peter,
The 1,2,3,4 are the Page ID’s that want included on the nav bar. You may need to double check and make sure you’ve specified the correct page IDs.
To specify pages in the left sidebar, you will need to use the Flexi-Pages widget instead of the regular page widget. You can google it or find more info on it in my previous tutorials.