septemous
Member
Posted 2 years ago #
Hi - thanks in advance.
I would like to replace the text versions of the previous/next page links to image buttons.
Our URL is: http://www.ablogvoyage.com/
the code I have is:
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Next page') ?></div>
<div class="alignright"><?php previous_posts_link('Previous page »') ?></div>
</div>
I would like to have /images/next.png & /images/previous.png instead of the « Next page & Previous page »
Is this possible?
thanks again for your time
S_
ClaytonJames
Member
Posted 2 years ago #
Define classes in your style sheet for "previous" and next". Of course, apply whatever styling you need. This is very general;
.previous a {
background:url(images/previous.png);
float:left;
}
.previous a:hover {
background:url(images/previous.png);
float:left;
}
.next a {
background:url(images/next.png);
float:right;
}
.next a:hover {
background:url(images/next.png);
float:right;
}
Then assign a "next" and "previous" class to the navigation in your template.
<div class="navigation"><div class="next"><?php next_posts_link('« Next page') ?></div>
<div class="previous"><?php previous_posts_link('Previous page »') ?></div>
I think that does it. Does that look right? Anyone?
ClaytonJames
Member
Posted 2 years ago #
septemous
Member
Posted 2 years ago #