Hide header text on single page

  • Author
    Posts
  • #162212

    thibsin
    Member

    Hi there,

    I have made a Referral page but I would to hide the header text of this page only but keep the grey area (the one you can replace with the featured image).

    I know how to modify the height of the header but I can’t figure out how to hide the page title.

    Can anyone give me a hand please ? :)

    Thank you very much :)

    The blog I need help with is thibaudtellier.com.

    #162217

    tarasdashkevych
    Theme Author

    Hello,
    Sure, I can help you!

    To hide the page title just for a specific page, you need to know the ID of that page. Here is a quick guide on how to find a page id: https://wordpress.com/support/pages/#how-to-find-the-page-id

    Here is an example of hiding page title for the page with ID 9:

    
    .page-id-9 .page-header .entry-title {
      clip: rect(1px, 1px, 1px, 1px);
      position: absolute !important;
      height: 1px;
      width: 1px;
      overflow: hidden;
    }
    

    Please let me know if you have any additional questions about the page header sections.

    Kind regards,
    Taras

    #162223

    thibsin
    Member

    Thank you very much. It works just fine ! :)

    Kind Regards,
    Thibaud

    #162232

    tarasdashkevych
    Theme Author

    You are very welcome, Thibaud ! :)

    Best regards,
    Taras

The topic ‘Hide header text on single page’ is closed to new replies.