Removing page titles
-
Hi all!
I made this site – https://www.piearchitecture.com – using the Toolbox theme.
I wanted to be able to remove the page title on the home page, so I wrote this php for the header:
<?php
$title = get_the_title($id = 0);
if ($title == “Home”){
echo ” “;
}
else{
echo $title;
}
?>This works fine – it removes the page title of the home page, but leaves it all the others. I am using the News page as a blog, and would like to change the title of it too! At the minute, it displays the title of the latest post as the page title. I would like it to say either ‘News’ or nothing at all.
My issue is, the name of the page seems to change everytime a new post is made.
Can anyone help please?!
ps – the news page is hidden now but can be seen here :
https://www.piearchitecture.com/news/Thanks in advance!
- The topic ‘Removing page titles’ is closed to new replies.