Thesis Tip — How To Remove Title From A Specific Page

When you add a new page in WordPress, it displays the title along with the content of the page. As a developer you may come across requirements where you don’t need the page title to show up. For instance you may choose to hide it on your landing pages or the WordPress Static homepage.

When using Thesis if you have the specific need to remove / hide the page title on a particular page then you can add thesis filter to eliminate the page title. Add the following code in custom_functions.php:


function show_title()
{
if(is_front_page()) return false; //or you can use is_page(‘id’) for specific page
else return true; 
}

add_filter('thesis_show_headline_area', 'show_title');

In the above code, show_title() checks that if the page is front page, then thesis will filter the headline area which includes the page title. That’s all to it!

Posted In:

Latest Posts — WordPress Support & Maintenance, Code Snippets, Thesis WordPress Theme Framework

9 Comments

  1. What about when you want it removed from ALL the pages in your site?

    Reply
  2. I have just tested. Thank you so much!
    @KIt – If you want remove from all pages than use:

    function suppress_title() { return (is_page()) ? false : true; } add_filter('thesis_show_headline_area', 'suppress_title');

    Reply
  3. Awesome I just tested it, thanks…:)

    function suppress_title() {
    return (is_page(‘About Us’)) ? false : true;
    }
    add_filter(‘thesis_show_headline_area’, ‘suppress_title’);

    Reply
  4. This was exactly the fix I was looking for, and it worked like a charm – thanks so much!

    Reply
  5. I have tested this code and it works but when i use it along with feature box, it does not allow feature box code to get displayed on homepage, so i had to work with a different code

    Reply
  6. How do you do this with the new Thesis 2.0 since you don’t really have a custom functions php and everything is done in skins?

    Reply

Comment on Thesis Tip — How To Remove Title From A Specific Page

Your email address will not be published. Required fields are marked *