RSS Subscribe Box After Posts
Adds a small box at the end of each blog post inviting readers to follow the site by RSS, with a link to your feed.
Opens WPIDE on
Code
<?php if ( is_singular( 'post' ) ) : ?>
<p class="wpide-rss-subscribe" style="margin:2em 0 0;padding:1em 1.25em;border-radius:6px;background:rgba(0,0,0,.04);">
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" style="vertical-align:-2px;margin-right:6px;"><circle cx="3" cy="13" r="2" fill="#f26522"/><path d="M1 6a9 9 0 0 1 9 9h-2.5A6.5 6.5 0 0 0 1 8.5zM1 1a14 14 0 0 1 14 14h-2.5A11.5 11.5 0 0 0 1 3.5z" fill="#f26522"/></svg>
Never miss a post: <a href="<?php echo esc_url( get_feed_link() ); ?>">subscribe with your RSS reader</a>.
</p>
<?php endif; ?>
Notes
Edit the wording in the snippet; the feed URL is filled in automatically.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.