A Rubber Duck made of stone on Levontin

Creative Commons License photo credit: Sharon G.

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).

editor

Editor Snippet

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>

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>

That’s it! your links are now fixed. (I updated the post as per Goran’s comment below).

Popularity: 14% [?]

 

11 Responses to A little bug in the Greyzed theme

  1. Chris M says:

    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!

  2. 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.

  3. duckranger says:

    @Goran – yes, I see your point. I changed it as well for this blog and updated the post. Cheers!

  4. Brendon says:

    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 :)

  5. radhames says:

    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

  6. Duck Ranger says:

    @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

    <script type='text/javascript'
    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

    </script>

    - I belive if you remove it – you should be alright.

  7. radhames says:

    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?

  8. Duck Ranger says:

    @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.

  9. radhames says:

    i did , but still the same

  10. Duck Ranger says:

    @radhames – Maybe this is an issue to ask the plugin author? http://alexrabe.de/wordpress-plugins/nextgen-gallery/

    Cheers

  11. radhames says:

    my website is rocking -thank for the themes

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.