Archived topic
Unable to remove page title in the content area
11 replies · Started by Amit Nair on April 16, 2018
Hello,
I have many pages like BLOG, ABOUT US etc.
By default, I am seeing Blog title on the blog page, ABOUT US title on the about us page and so on.
I tried many ways but unable to remove it. Please help.
Hi there,
Do you want to remove the page titles globally?
If so try this filter:
https://docs.generatepress.com/article/generate_show_title/
If you only want to remove them on some pages then the disable element metabox should work:
https://docs.generatepress.com/article/disable-elements-overview/
Let me know.
Hi Leo,
Thanks for the response.
I am new to WordPress. Please let me know where to update this code. Tried adding this in custom CSS but doesnt work.
One of these methods: https://docs.generatepress.com/article/adding-php/
Code snippets is the easiest if you aren't using a child theme.
I installed the 'Code snippets' plugin and added the code to remove titles globally. I used the 'Run only once' option in Code Snippets assuming the function has to be created only once.
But it is not working. I still see the titles. E.g. you could check the BLOG and ABOUT US page.
Can you try the Run Snippet everywhere option?
Thanks Leo. It works for the 'About Us' page.
The main menu has items like Home (page), About Us (page) and Blog (category).
While it works for pages, since blog is a category, I still see the title of that. How can I remove that?
Not sure what you mean?
There shouldn't be a page title showing for blog page by default.
Your site link is no longer working for me.
Can you double check so I can have a look?
Hi Leo,
I changed my domain so the link was not working. I have placed a new link for you. Please check.
I am actually using a blog category under the menu option.
Please check my Menu structure and the home page to understand this.
Hi Leo,
Thanks for this.
It did remove the title. But I am getting a white background that remains and it looks very odd.
The filter for removing titles from page worked very well as it removed the title and the white background behind the title.
I want to do the same for the Blog category. Kindly help. Thanks!
Regards,
Sorry.
Try this CSS instead:
.category header.page-header {
display: none;
}
Let me know.