• 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

How To Insert Featured Image Before 1st H2 Tag

This code is similar to this snippet however it enables you to add any type of content, in this case the featured image, before the 1st h2 tag in single posts and pages.

Video Demo

Shows how the featured image is inserted before the first of 2 H2 heading tags in a single post.

Note : You can use this code to insert any type of content before any type of HTML tag in your posts and pages.

Register or login to access the code :

Register for full access

Related Tutorials

  • Insert Featured Image After Paragraph

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