• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Add Banner Image After RSS Feed Excerpt in WordPress

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:

banner rss feed

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.

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.