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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

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.

Entry Meta

Reader Interactions

Comments

  1. Dan says

    March 11, 2014 at 10:41 am

    Found this for Genesis 2.0

    remove_action( 'genesis_post_title', 'genesis_do_post_title' );

    Cheers,
    Dan

    Log in to Reply
    • Brad Dalton says

      March 11, 2014 at 10:49 am

      Thanks Dan

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

      Also works globally not conditionally.

      Log in to Reply

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.