I really like the greyzed wordpress theme, but there was a small bug that really got to me – the “newer posts” and “older posts” links were reversed. This was a bit irritating – but luckily it is easy enough to fix.
If you are using version 1.0.4 of the theme, all you have to do is go to your admin area (wp-admin), and when the Greyzed theme is activated – click on the Editor link under Appearance (see snippet below).
Once in the editor – select Single Post (single.php) and find this part:
<div id="nav-post">
<div class="navigation-bott">
<?php next_post_link('%link', '<div class="leftnav">older posts</div>') ?>
<?php previous_post_link('%link', '<div class="rightnav">newer posts</div>') ?>
</div>
</div>
<div class="navigation-bott">
<?php next_post_link('%link', '<div class="leftnav">older posts</div>') ?>
<?php previous_post_link('%link', '<div class="rightnav">newer posts</div>') ?>
</div>
</div>
and change it to read:
<div id="nav-post">
<div class="navigation-bott">
<?php previous_post_link('%link', '<div class="leftnav">older posts</div>') ?>
<?php next_post_link('%link', '<div class="rightnav">newer posts</div>') ?>
</div>
</div>
<div class="navigation-bott">
<?php previous_post_link('%link', '<div class="leftnav">older posts</div>') ?>
<?php next_post_link('%link', '<div class="rightnav">newer posts</div>') ?>
</div>
</div>
That’s it! your links are now fixed. (I updated the post as per Goran’s comment below).
Popularity: 8% [?]
If you enjoyed this article, please consider sharing it!
11 Responses to A little bug in the Greyzed theme
Leave a Reply Cancel reply
Recent Comments
- Medovarszki: This post saved my hair from falling out but yeah, I beat my head against the wall now too
- Shehryar: Probably the ebst spring web mvc tutorial I have read, explain everything in great detail. i loved it, this...
- armand: You do not resize the image. You just display it smaller using html tag attributes. It would be nice to...
- COTP: ** Just to clarify, in CakeErrorController.php (the copy in app/Controller/) public function beforeRender() {...
- COTP: For CakePHP 2.0+, you can copy lib/Cake/Controller/CakeErrorC ontroller.php to app/Controller/CakeErrorCon...
- Medovarszki: This post saved my hair from falling out but yeah, I beat my head against the wall now too
Categories
- Android (1)
- appengine (3)
- Be nice to your users (6)
- CakePHP (13)
- General (5)
- Googlemaps (3)
- Java (11)
- javaScript (4)
- jQuery (11)
- Seam (2)
- Security (4)
- Spring MVC (1)
- Spring Webflow (2)
- User Interface (5)
- Wordpress (2)
Archives
- January 2012 (2)
- December 2011 (1)
- July 2011 (2)
- June 2011 (4)
- May 2011 (1)
- December 2010 (3)
- November 2010 (1)
- August 2010 (2)
- July 2010 (2)
- June 2010 (4)
- May 2010 (4)
- April 2010 (5)
- March 2010 (3)


Thanks for sharing this change with us, it’s a super theme and all these little hints, tips and tricks make it that much better!
Hi!
I’ve just applied the same theme to a blog that I’m setting up and found the same bug. I fixed it myself, but a bit differently. I my mind the “older posts” should point to the left and the “newer posts” to the right. So this is what I did:
<?php previous_post_link('%link', 'older posts’) ?>
<?php next_post_link('%link', 'newer posts’) ?>
In addition to your changes I switched the function names.
@Goran – yes, I see your point. I changed it as well for this blog and updated the post. Cheers!
Yeah, I’m with Chris – thanks for helping other people out who have the theme.
Also, nice touch with the photo of the girl in the bikini
Hi dear , can you help :: i am able to see all my pages on Mozilla firefox , but not on Internet Explorer witch give a error a the botom here is error,
Is any way to fix this issue and can you look on inernet explorer http://www.neciotv.com
thank you..
Message: Unterminated string constant
Line: 21
Char: 8
Code: 0
URI: http://neciotv.com/neciotvwp/
Message: ‘script.parentNode’ is null or not an object
Line: 25
Char: 713
Code: 0
URI: http://neciotv.com/neciotvwp/wp-content/uploads/shadowbox-js/38d81d42ef30ac1f746f9b2e7a646b40.js?ver=3.0.3
@radhames – This seems to be like a little problem with the code. If you do view source in Internet Explorer you see this in line 47
src='http://neciotv.com/neciotvwp/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.0'>
</script>
You have an extra > sign at the end of the second line above, just before the final
- I belive if you remove it – you should be alright.
Thank you duck ,,,,maybe is crazy question , but i was looking on the index.php and stysle.css i cant find that where your located the
can you tell me witch file to look for?
@radhames – It looks like this part is added by the nextgen gallery plugin. I think if you uninstall and reinstall it – you should be alright.
i did , but still the same
@radhames – Maybe this is an issue to ask the plugin author? http://alexrabe.de/wordpress-plugins/nextgen-gallery/
Cheers
my website is rocking -thank for the themes