WP SITES

2948 Tutorials & 189 Plugins

Remove Entry Title & Entry Meta From Attachment Pages Using Genesis

In this post, i’ll provide all the PHP code i tested to remove the following from all single post attachment pages:

  1. Entry Titles (Post Titles
  2. Post Info (Entry Meta)
  3. Post Meta (Entry Meta)
Note: This PHP code only works on HTML 5 child themes. Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

Here’s the Before

Attachment Page Title

And After Screenshots

attachment page

This code removes the entry title from all pages attached to all single posts

You could also use code like this:

This code removes the Entry Title (Post Title) and Entry Meta (Both post info and post meta) from all pages attached to all single posts

Simply modify the code to suit your own requirements.

2 responses to “Remove Entry Title & Entry Meta From Attachment Pages Using Genesis”

  1. Found this for Genesis 2.0
    [code]remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );[/code]

    Cheers,
    Dan

    1. Brad Dalton Avatar
      Brad Dalton

      Thanks Dan

      Please note: Only works for older themes running XHTML markup and loop hooks.

      Also works globally not conditionally.

Was This Tutorial Helpful?