In this post, i’ll provide all the PHP code i tested to remove the following from all single post attachment pages:
- Entry Titles (Post Titles
- Post Info (Entry Meta)
- 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
And After Screenshots
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.
Found this for Genesis 2.0
Brad Dalton says
Please note: Only works for older themes running XHTML markup and loop hooks.
Also works globally not conditionally.