This PHP code enables you to display a banner image after all RSS Feed Excerpts.
Simply paste the HTML for your banner image within the code and paste the entire code at the end of your child themes functions.php file.
This code will work in any theme as it uses the the_content_feed & the_excerpt_rss filters.
Here’s an example of what it looks like:
Style RSS Feed Banner Image
You will need to include inline CSS within your images HTML tags or create a XML style sheet to style any content in your RSS feed. Different browsers and feed readers display feed content differently and may remove some styles.
Here’s an example of how to add 30px of padding above the banner image using inline CSS within the HTML tags of the image.Subscribe for Free & Premium Genesis Tutorials