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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Display Featured Image After Paragraph

This code enables you to add your featured image after any number of paragraphs on single posts.

image-after-paragraph

The above example shows the featured image added after the first paragraph within the content area of the post.

The code also enables you to change the:

  • Image size
  • Class
  • Image attributes
  • The number of paragraphs after which to display the featured image
  • Alt Text

The code works in Genesis and any other WordPress theme.

Installation

Add the code to the end of your child themes functions file and add a featured image to the featured image meta box field on any Edit Post/Page screen. By default, it adds the image after the 1st paragraph however this can be modified.

Here’s the code :

Register for full access

Related Tutorials

  • PHP Regex To Insert Featured Image Before 1st H2 Tag
  • Add Featured Image After 1st H2 Heading in Single Posts

Featured Image The Content

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems