[Support request] Unable to remove page title in the content area

Home Forums Support [Support request] Unable to remove page title in the content area

Home Forums Support Unable to remove page title in the content area

  • This topic has 11 replies, 2 voices, and was last updated 6 years ago by Leo.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #551429
    Amit Nair

    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.

    #551756
    Leo
    Staff
    Customer Support

    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.

    #551818
    Amit Nair

    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.

    #551910
    Leo
    Staff
    Customer Support

    One of these methods: https://docs.generatepress.com/article/adding-php/

    Code snippets is the easiest if you aren’t using a child theme.

    #552367
    Amit Nair

    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.

    #552833
    Leo
    Staff
    Customer Support

    Can you try the Run Snippet everywhere option?

    #553384
    Amit Nair

    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?

    #553867
    Leo
    Staff
    Customer Support

    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?

    #554007
    Amit Nair

    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.

    #554280
    Leo
    Staff
    Customer Support
    #554364
    Amit Nair

    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,

    #554901
    Leo
    Staff
    Customer Support

    Sorry.

    Try this CSS instead:

    .category header.page-header {
        display: none;
    }

    Let me know.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.