make element sticky on only some posts (not all)

Ideally that banner would have a class set that you can target it with but since that probably means you would need to edit 1500 posts I guess that’s not an option 🙁

If the banner is the first link in each post, you could set the Sticky Element to be .entry a:first-child

But please note that actually makes the first link in each post sticky so if the banner is not in all of theme, any other links that appears first in the post will be made sticky.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer