Pad out page content if it is below a certain height in pixels
-
I have been looking at this post which talks about adding padding text to pages that have very little content. Unfortunately someone closed it before the final question was answered.
Basically I want some PHP to work out if a page body is less than a certain amount of pixels in height, and if so, bring in something else. Perhaps a shortcode for a Widgets on pages widget area that I can put a slider or text into.
The end game is that I won’t have pages that have a body that is shorter than the content in my sidebar.
Thanks in advance for any ideas.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Pad out page content if it is below a certain height in pixels’ is closed to new replies.