Excluding Pages in Studio Press Theme

 

  As some of you may or may not know, Daily Blog Tips is a very well known and respected blogging tips blog with tutorials and guides for the average blogger. One of the many features Daily Blog Tips offers it’s followers and subscribers are Free WordPress Themes. Daily Blog Tips created the wordpress theme called StudioPress which comes in many different StudioPress colors, is adsense ready, is widget ready, and offers comment styling.

StudioPress Theme

  Respectively, nothing is perfect and this theme has a one main issue which I wanted to address: Excluding Pages! Now I know what you’re thinking I’ll just use a plugin to in wordpress. Well unfortunately none currently work with WP 2.8.1 and the Studio Press Theme. I have tried ‘’, ‘PageMash’, ‘Page Link Manager’, ‘Page tools’, and a few others…you name it I tried it. Well through a decent amount of time spent fiddling with code I(Zero from ZeroGamingAlliance) think I found a solution.
   With the help of the comments on the main StudioPress Theme thread I was able to come up with my own solution to the problem. The issue + fix is posted below, and working on 3 seperate blogs currently, running on WP 2.8.1.

WP 2.8.1 – I think I found a solution to the “excluding pages” from the top navigation problem.

1- Go to header.php

2- Find the following:

$output .= ‘ID).’” title=”‘.$thats_all->post_title.’”>’.$thats_all->post_title.’‘;

3- Infront of $output . add this(Change XXX to page number):

if ($the_page_id != 'XXX')

4- Should look like:
if ($the_page_id != ‘XXX’) $output .= ‘ID).’” title=”‘.$thats_all->post_title.’”>’.$thats_all->post_title.’‘;

5- Optional To exclude multiple pages just duplicate the if ($the_page_id != 'XXX') code, like so:

if ($the_page_id != 'XXX') if ($the_page_id != 'XXX') if ($the_page_id != 'XXX') $output .=

----

IMPORTANT My $output .= code was slightly different than the one above mine looked like $output .= ' < li' . $addclass . > so the main thing is to look for $output .= and add the other code in front of it.

Working for me on my gaming site - http://zerogamingalliance.com

Good Luck!

  May not be the most scientific approaches but it works.   -   Thanks for Reading, feel free to browse our Free Flash Games section.

You can leave a response, or trackback from your own site.

13 Responses to “Excluding Pages in Studio Press Theme”

  1. Thank you so much for this, I was just about to give up on this otherwise perfect theme! After a couple of hours searching just wanted to let you know how much I appreciated coming upon this post.

  2. Owen says:

    Thanks for this, saves me hours of stress!! Still no way of posting categories though..

  3. Ricardo says:

    Your Very Welcome, Thanks for commenting!
    -rS

  4. Michael says:

    Great stuff! I spent over an hour looking for the answer to this problem.

  5. Rick says:

    I have been designing a custom template for a client and THIS IS THE ONLY THING THAT WORKED!!

    THANK YOU

    I will add: My code looked a little different than the above – I will post it below if anyone’s is the same as mine (in header.php) :

    if ($the_page_id != ‘XXX’) $output .= ‘ID).’” title=”‘.$thats_all->post_title.’”>’.$thats_all->post_title.’‘;

    Again, thanks

  6. SexyLadonna says:

    Great post. I found your site from Yahoo and bookmarked it. I found your site through google search and found this post helpful for the themes.

  7. Satish says:

    Wow thanks! I searched all day for a solution and was about to change this otherwise perfect template. Thanks again :)

  8. Satish says:

    I have another issue with this template. My Website’s RSS feed is feeds.feedburner.com/Satishmania but when I click on the “grab our rss feed” it shows somethin else. What do I have to change?
    Regards.

  9. Ricardo says:

    Hey Satish thanks for the comment – go to the appearance editor for the template click on header.php .. look for the following line – link rel=”alternate” type=”application/rss+xml” title=” php bloginfo(‘name’); RSS Feed” href=”http://feeds2.feedburner.com/zerogaming”

    That’s what mine looks like just change to your sites extension
    Good Luck

  10. Satish says:

    Hi, I changed it to and I have also installed a feed-redirect plugin. The RSS link still shows a different feed URL compared to the chicklet link.

    Satish.

  11. Satish says:

    Ya thanks, my feedburner redirect is fixed now!

  12. Satish says:

    Hi, me again! Is there a way we can install a CSS dropdown menu that replaces the existing header from our template?

  13. Ricardo says:

    Hey Satish, there is a javascript “on mouse over” dropdown menu you can use to replace the existing header navigation. You would keep the same visual layout that is provided now, then just add the mouse over script to the header. Here are three really good sites to make your mouseover: http://javascript.about.com/library/blmo.htmhttp://www.htmlgoodies.com/beyond/javascript/article.php/3470771/Advanced-JavaScript-for-Web-Developers-onClick-and-onMouseOver.htmhttp://www.codespy.com/javascriptmouseover.html

    If you need further help let me know :)

Leave a Reply

*