Prev/Next Advanced selector
-
So, I’ve customized my prev/next links.
<div id="nav-below" class="navigation"> <div class="nav-previous"><?php previous_post_link('%link', '%title', 'in_same_cat', TRUE); ?></div> <div class="nav-next"><?php next_post_link('%link', '%title', 'in_same_cat', TRUE); ?></div> </div><!-- #nav-below -->And now I’m targeting them via css;
ie .nav-revious has a background image and so does .nav-next.
Think big arrows pointing left and right.So now when I get to my first post in my series, even though there isn’t a previous link, my background-image is still showing up on my div, if there an easy
ifstatement to put in somewhere to hide the div if there’s no content? ieif no content display:hidden .nav-previousI’ve tried the search on these forums and some google pages to no avail.
Thanks for your help! 😀
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Prev/Next Advanced selector’ is closed to new replies.