WordPress.org Plugin Mirror
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 10 commits ahead of wp-plugins:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Hide Featured Image with jQuery


When you hide a featured image with CSS, the article text gets pushed to the top of the article. This happens because the bottom margin of the featured image usually acts as the top padding of the article. To prevent this from happening, I use jQuery to set the featured image height to 0. The featured image is not visible, but its bottom margin acts as the top padding of the article.