• 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

Reposition Archive Entry Title Inline With Featured Image

By default, Genesis displays the entry title before the featured image on your archive pages like your author, blog, category, search, and tag archives pages:

title-before-image

The code snippets in this tutorial, enable you to move your entry titles so they’re inline with your featured image on any archive page like this:

title-beside-image

Here’s 2 code snippets which do the job:

1. You can put this PHP code in your functions file or any archive type template:

remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
 add_action( 'genesis_entry_content', 'genesis_do_post_title', 8 );

2. Or, you can add the following code to your child themes functions file and use conditional tags to target specific archive pages:

add_action( 'loop_start', 'reposition_title' );
function reposition_title() {
if ( ! is_singular()) {
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    add_action( 'genesis_entry_content', 'genesis_do_post_title', 8 );
    }
}

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.