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.

I'm having an issue with wp_link_pages tag. I want to list the number of pages of each post with 'next' and 'previous' links that are two image arrows.

To better understand the problem I'm having, please see this URL: http://next.lab501.ro/smartphone/nokia-n9-meego-to-go/2

At the top of the body you'll see a list of pages of that post. In the left and right side of the pagination there are two green arrows, I want them to function as links to 'nextpagelink' and 'previouspagelink'.

I've read the wordpress codex regarding wp_link_pages and 'styling page links' but I still can't figure this out.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

adjust the 'nextpagelink' and 'previouspagelink' arguments for wp_link_pages() to have a css class you can style

$args = array(
    'nextpagelink'     => '<span class="next">' . __('Next page') . '</span>',
    'previouspagelink' => '<span class="prev">' . __('Previous page') . '</span>'
);
wp_link_pages($args);

then in your css you can style those spans to use your arrows as background images.

share|improve this answer

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.