ThemeShaper Forums » Thematic

[closed]

rename nav_above links

(12 posts)
  • Started 7 years ago by craw
  • Latest reply from craw
  • This topic is resolved

Tags:

  1. craw
    Member

    is there a way I can replace (on a single blog post page) the title of the next and previous posts in the nav_above to display simply
    "previous post and "next post"?

    Thanks-

    Posted 7 years ago #
  2. function childtheme_override_nav_above() {
    	if (is_single()) { ?>
                <div id="nav-above" class="navigation">
                	<div class="nav-previous"><?php previous_post(' &laquo; %', 'Previous Post', 'no'); ?></div>
                	<div class="nav-next"><?php next_post('% &raquo; ', 'Next Post', 'no'); ?></div>
                </div> <?php
    	}
    	else { ?>
                <div id="nav-above" class="navigation">
                    <?php if(function_exists('wp_pagenavi')) { ?>
                    <?php wp_pagenavi(); ?>
                    <?php } else { ?>
                    <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'thematic')) ?></div>
                    <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'thematic')) ?></div>
                    <?php
    	} ?>
    	    </div> <?php
        }
    }

    Step 1, looked in thematic/library/extensions/content-extension.php and located override.
    Step 2, saw what I wanted to wasn't there and went to the codex http://codex.wordpress.org/Next_and_Previous_Links
    Step 3, ????
    Step 4, Profit.

    Posted 7 years ago #
  3. craw
    Member

    Thanks Scott- that worked great!

    Thanks also for the step by step- I'll be spending more time in the codex!

    Posted 7 years ago #
  4. craw
    Member

    After testing I noticed that "next post" wasnt clicking over to another page so I took a look at the codex and updated this line

    <?php next_post('% »', 'Next Post', 'no'); ?>

    into this

    <?php next_post('% »', 'Next Post', 'yes'); ?>

    to turn on the title.

    Now, the title is added and "next post" will click over but if I change "yes" to "no", the title goes away and "next post" is no longer clickable.

    Posted 7 years ago #
  5. Sucky, I didn't test it, but I will this time to figure out what is wrong, give me a few. ;)

    Posted 7 years ago #
  6. Oh, after throwing it up on a test site scottnix.com/test2/2008/layout-test/ it works perfectly fine for me. Not sure what the deal is. I even did a file comparison to make sure the code posted didn't have formatting issues and didn't see anything. :o

    Posted 7 years ago #
  7. craw
    Member

    Thanks for checking- I'll just have to keep testing it.

    Posted 7 years ago #
  8. craw
    Member

    Scott- can you tell me what OS and browser you are using?

    The next post links is not working for in any browser EXCEPT Internet Explorer-

    Posted 7 years ago #
  9. Tested scottnix.com/test2/2008/layout-test/ in Chrome/Firefox/IE in windows, showing on all browsers. I am baffled why it wouldn't work, maybe Kathy will come along and fix it or test it. ;P

    Posted 7 years ago #
  10. craw
    Member

    Here's a link if you want to check it out.Thanks

    http://64.79.143.234/clinicient/wordpress/?p=394

    Posted 7 years ago #
  11. sowingseeds
    Member

    It does not seem that the problem is with the code, but that the secondary aside is somehow 'covering' the link. If you temporarily do not display the secondary it looks as if the link will work. If so probably the solution is in the css for asides / secondary?

    Posted 7 years ago #
  12. craw
    Member

    Thanks for the input!

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.