ben-miles / benmiles-wp

A custom WordPress theme, plus data and plugins, for my portfolio website.
https://benmiles.com
Other
1 stars 0 forks source link

Prev/Next Navigation for First & Last Portfolio Items #19

Closed ben-miles closed 1 year ago

ben-miles commented 1 year ago

The Prev/Next navigation is a little broken for the first and last Portfolio Items. This is because each of the two nav elements is 50% of the width of the parent container and float left; and for the first and last pieces, only one of the two nav elements is displayed. The result is that the Prev nav element appears on the left side of the page (instead of the right, where it usually is) on the last item only.

One potential solution might be to set explicit float values on these, left for previous and right for next, at least for tablet and desktop targets. There may also be a argument that can be passed to the WordPress function that generates these elements which can force some kind of empty container element instead of outputting nothing at all.