Thesis Tip — How To Remove Title From A Specific Page

November 24, 2011

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!

 

Join 37,807 others and get free tutorials & tips on design & development using Wordpress on, Thesis & Genesis!

{ 6 comments on Thesis Tip — How To Remove Title From A Specific Page… read them below or add one }

Kit December 22, 2011 at 10:41 pm

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

Rzym January 19, 2012 at 11:15 pm

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');

Sam February 24, 2012 at 12:07 pm

Awesome I just tested it, thanks…:)

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

Kit March 1, 2012 at 4:38 am

It worked perfectly. Thanks!

RudyIsfat March 15, 2012 at 1:53 pm

I’ve tried to my new blog… It WOKRS!!! Thank you so much :)

Shayna March 29, 2012 at 6:44 am

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

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

You can add images to your comment by clicking here.

Previous post:

Next post:

X

Wordpress, Thesis, Genesis tutorials from Binary Turf — one tutorial a day. Subscribe & sharpen your web design skills.

Name:

Email:

We respect your email privacy.