Site logo

Archived topic

PHP Function to remove entry header

16 replies · Started by Fabien on June 11, 2020

Viewing posts 1–15 of 17

Hi,

Is there a php function to remove the entry-header within a post ?

Thanks !

Hi there,

So you want to remove the post title and entry meta?

Would this for both the posts page and single post?

Yes, I want to remove the div.entry-header (and it's content : title, featured image, meta) using a PHP function. I will target specific post type.

Thanks

Thanks David ! I think having function would be nice ;-) Could that be added in the roadmap ?

As the entry-header is a core element of the single post - removing it feels like a custom template is required. But i will mention it to Tom :)

Hi @Tom,

Any updates on this ? It would make sense to be able to remove it with a function.

Thanks

Awesome Tom !

Glad I could help :)

Hi, I am looking to remove the entry header from the published post.
I am new to GeneratePress, so apologies for my ignorance.
I see that a "filter" shown above was added in 3.0 - but what do you need to do to use it.
I tried pasting the "so you can do this" code in my child theme Functions.php file, but that did not work, so I tried pasting it in the custom CSS but again that did not work.
Please advise.
Thanks

Hi Ying,
Thank you for your reply. I did try pasting into Functions.php of my child theme, but it did not work.
However I have since found the solution on each "Page" in Wordpress, in the toolbar on the right, has at the bottom, "disable elements" one of which is the content Title.
So that worked for me.

This archived topic is closed to new replies.