Sticky Post on All Pages of Site Including Post Pages
-
I’m using a sticky post to display some custom text on a blog homepage: https://www.baseballforbusypeople.com/blog/. It is the blue bar at the top. When I click on a blog post to read it (example: https://www.baseballforbusypeople.com/blog/royals-hamels-nationals/), the sticky post goes away.
Is there a way that I can keep this sticky post on every page, including post pages? Or maybe use something else to do the same thing?
This is the code in the content.php file:
`<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<div class=”featured-post”>
<?php _e( ‘Featured post’, ‘twentytwelve’ ); ?>
</div>
<?php endif; ?>
sticky-post
- The topic ‘Sticky Post on All Pages of Site Including Post Pages’ is closed to new replies.