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

WP SITES

2966

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Subscriptions
  • Access
  • 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

    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.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Code written by Brad Dalton specialist for Genesis & WooCommerce.

Advertise · WPEngine · Genesis · Log in

  • Account
  • Consulting
  • Post Tags
  • Contact
  • Terms
  • Monthly Membership
  • Yearly Subscriptions
  • Log in
 

Loading Comments...