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.
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 hide pages in wordpress. Well unfortunately none currently work with WP 2.8.1 and the Studio Press Theme. I have tried ‘Hide Pages’, ‘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 theif ($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.



July 16th, 2009
Ricardo
Posted in
Tags:
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.
Thanks for this, saves me hours of stress!! Still no way of posting categories though..
Your Very Welcome, Thanks for commenting!
-rS
Great stuff! I spent over an hour looking for the answer to this problem.
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
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.
Wow thanks! I searched all day for a solution and was about to change this otherwise perfect template. Thanks again
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.
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
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.
Ya thanks, my feedburner redirect is fixed now!
Hi, me again! Is there a way we can install a CSS dropdown menu that replaces the existing header from our template?
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.htm – http://www.htmlgoodies.com/beyond/javascript/article.php/3470771/Advanced-JavaScript-for-Web-Developers-onClick-and-onMouseOver.htm – http://www.codespy.com/javascriptmouseover.html
If you need further help let me know