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

WP SITES

2669

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

Featured Image Before Single Page Entry Title in Genesis

This code adds the featured image before the entry title on single pages only.

The image is only added if a featured image is set using the Featured Image meta box native to WordPress.

If no featured image is set, no image is added before the title on single pages.

Click here to access free tutorials

If you want to add the featured image before the title on single posts, use this code.

To add the featured image on single pages & single posts, change :

is_singular( 'page' )

to

is_singular(array( 'page', 'post' ) )

Note the addition of the array function and extra opening and closing round brackets.

Image Position

Change the genesis_entry_header hook to change the position the featured image is loaded on the single page.

Tested using the Magazine Pro child theme by StudioPress based on the following question from a registered user :

I am working with the Magazine pro child theme. I want to show the featured image on pages, but only if the featured image is added. I don’t want it to show a random thumbnail in the content.

Related Tutorials

  • Add Featured Image Before Single Post Entry in Genesis
  • Add Text Overlay To Featured Image Hover On Single Posts

Featured Image Magazine Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn 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