dont show prev/next img links on first/last page
-
I made a custom attachment view using image.php and put in the next/prev links below the photo. i also added effects to make the links fade on hover and show “previous image” and “next image” text underneath.
problem is that i used divs to place the text underneath and now on the very first page (and the very last page) i have the “previous image” (and “next image”) text showing but obviously the php prev/next image links are gone. this messes up the page completely…
what i think i need is a php code for not showing the “previous image” div on the first page but i dont know coding at all. it should be really easy to do i presume…
it’s a little confusing to explain so please check out the following:
normal: https://www.missprestin.com/wordpress/?attachment_id=127
first (or last) attachment pages: https://www.missprestin.com/wordpress/?attachment_id=126thanks in advance.
- The topic ‘dont show prev/next img links on first/last page’ is closed to new replies.