This topic has 7 replies, 2 voices, and was last updated 6 years by Laura.

  • Author
  • #195900
     Grant
    Participant

    Hi Guys,

    How can I remove the ‘Page Title’ from Pages only – but not Posts?

    The navigation I have on the site is pretty intuitive. I’ve already removed the breadcrumb. There is also just no need to display the page title. It takes up unnecessary visual space on mobiles.

    I know I can go from page to page and edit the ‘Title’ settings on every page but that does not remove the page titles for pages like Archives, Catagoriies, Tags, etc.

    I’m sure there’s probably a bit of php code there somewhere in the Theme which can just be removed.

    Cheers,

    Grant

    #195966
     Laura
    Moderator

    Hello, please add this to style.css of child theme 🙂

    COPY CODE
    
    .page .page-title {
        display: none !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #195992
     Grant
    Participant

    Hi Laura,

    Thanks for your reply. However, that option won’t work. Using it removes BOTH the tag and post headings. Notice in the attached files that the CSS path names are effectively the same.

    The only way I can see that it will be possible to remove the ‘Tag Heading’ but without touching the ‘Post Heading’ is to remove the relevant php code from the appropriate file and place that file in the Child theme location. Unless you can think of a different workaround?

    Do you know which file generates the Tag and Catagory headings?

    Cheers,

    Grant

    Attachments:
    You must be logged in to view attached files.
    #196036
     Laura
    Moderator

    Hello, yes i can find a workaround with css, can you share access so i can test it? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #196045
     Grant
    Participant
    This reply has been set as private.
    #196136
     Laura
    Moderator

    Hello, here is the idea, let me know if it works

    COPY CODE
    
    .category h1.page-title {
        display: block !important;
    }
    .tag h1.page-title {
        display: block !important;
    }
    h1.page-title {
        display: none;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #196161
     Grant
    Participant

    Hi Laura,

    Thanks so much for your efforts.

    The code above was not quite what I was after however it gave me the necessary info that I needed to tweak it to achieve the result. So THANK YOU!

    I wanted to remove the category and tag titles ONLY while leaving the Post Title. A little tweak of the above and that worked!

    THANKS,

    Grant

    #196184
     Laura
    Moderator

    Glad you could resolve it 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?