pezastic
Member
Posted 7 years ago #
The solution from someone in-the-know on these forums:
<?php
previous_post('%','<img
src="http://www.bbiverson.com/images/buttons/previous.jpg" alt="Read Previous Entry" align="middle" /> Previous Entry', 'no', 'no', 1, '');
if (!((basename (__FILE__) == 'index.php') && ($_SERVER['QUERY_STRING'] ==
''))) {
?>
">Latest Entry
<?php
next_post('%','Next Entry<img
src="http://www.bbiverson.com/images/buttons/next.jpg" alt="Read Next Entry"
align="middle" />', 'no', 'no', 1, '');
}
?>
I'm grateful that people here are so helpful!
Just my 2 cents... I like the method, but I'd rather have images defined in the CSS.
So basically, I would keep the same piece of code, only defining a specific class (for example : "after" and "before") instead of those links to images.
The result is the same, I'm just a CSS freak. The only serious advantage I can think of, is that it makes your code more easy to read since it only contains the structure.
You leave it to the CSS to manage the styling.
pezastic
Member
Posted 7 years ago #
I don't know anything about CSS. I really don't have the time to learn the intracacies of it. But, I would like to know how to create a class, like you suggested. That isn't too hard, is it? Not only am I interested in placing the images refs in CSS, but the text styling as well.