• Greetings,

    On my site, I have a combination of pages and posts. The main navigation across the top has “Home”, “Company”, “Services”, “Blog”, “Contact Us”. I would like to remove the title from the Blog page (though not the individual blog posts themselves), which says “Blog on Sustainable Solutions Group” in the title area. Now this page is using the default template so if I removed it in the template it would remove the titles from other post pages, which I don’t want. The blog post page has a slug of “blog.” Can I or should I use this slug to write a function to just remove the title from the blog post page?

    Here’s where I’ve started, at the bottom of functions.php file:

    //The following REMOVES TITLES FROM THE BLOG PAGE
    function remove_blog_title ($title)  {
    	if (is_post("blog"))   {
    		return(' ');
    	}
    }
    //END remove blog page title

    Am I even on the right track?

    Thanks for any help!

  • The topic ‘How to remove title from blog page only using slug’ is closed to new replies.