ThemeShaper Forums » Thematic

[closed]

remove page name from home, contact etc but not blog

(3 posts)
  • Started 1 year ago by Colleen
  • Latest reply from helgatheviking
  • This topic is resolved
  1. Hi, Is there some coding that can be put into the function.php that will remove the page name from a static home, contact page etc but not from the blog?

    Posted 1 year ago #
  2. Stop looking I found the answer.

    function remove_title($posttitle) {
        if (is_page()) {
            return '';
        } elseif (is_404()) {
            return '';
        } else {
        		return $posttitle;
        }
    }
    add_filter('thematic_postheader_posttitle', 'remove_title');
    Posted 1 year ago #
  3. you can condense the logic a little, but that is exactly how to use a filter. congrats, now you can filter anything!

    function remove_title($posttitle) {
        if (is_page() || is_404()) {
            return '';
        } else {
        	return $posttitle;
        }
    }
    add_filter('thematic_postheader_posttitle', 'remove_title');
    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.