WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing page titles (1 post)

  1. ivhero
    Member
    Posted 1 year ago #

    Hi all!

    I made this site - http://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 :
    http://www.piearchitecture.com/news/

    Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic