Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hey i am using this theme called starblog and on the single gallery page it shows this cpde below

<div id="nav-images" class="navigation clearfix">
            <div class="nav-next"><?php next_image_link() ?></div>
            <div class="nav-previous"><?php previous_image_link() ?></div>
        </div>

It shows the thumbnails of the next and previous image but instead i want it show text "Next Image" "Previous Image" how do i change this

share|improve this question
    
next_image_link() accepts a second parameter text, –  amit Sep 7 '12 at 4:22
add comment

2 Answers

The WordPress function next_image_link() do accept a second parameter $text which will show up instead of a thumbnail image.

Example -

<?php next_image_link( false, 'Next Image' ); ?> 
share|improve this answer
add comment

This should do the trick. Just replace your code above with this.

<div class="navigation"><p><?php posts_nav_link('&#8734;','Next Image','Previous Image'); ?></p></div>

Read more about customizing these links here

share|improve this answer
    
Yes but i think the way you just did it it won't be linked –  Mihad Aiko Sep 7 '12 at 1:07
    
Sorry wasn't thinking..check the edit –  Pollux Khafra Sep 7 '12 at 1:18
    
make sure to check the answer correct if this works for you. –  Pollux Khafra Sep 7 '12 at 1:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.