[resolved] remove title of the page (9 posts)

  1. roniewp
    Posted 7 years ago #

    hi, I created a page name mypage, after that mypage automatically added to my menu, and when I clicked on that menu there is a blank content with a title of mypage, my question is how can I removed the title in the content of the page but I still want mypage be seen in my menus.


  2. roniewp
    Posted 7 years ago #


  3. Sneldog
    Posted 7 years ago #

    How did you solve this?

  4. Sneldog
    Posted 7 years ago #

    NOT resolved for me, unfortunately.

  5. William
    Posted 7 years ago #

    I choose to remove page name from all pages... then I can choose exact text and formatting as I prefer. I look for the following code in the page.php file and simply comment it out.

    <!-- Commented out
    <h2 class="topTitle">"><?php the_title(); ?></h2>

    I hope that this helps.


  6. abovocipher
    Posted 7 years ago #

    hey william,
    thanks, i didnt even think about that. what i did is make a page template and add "Template Name: whatever name" to the first <?php section. After that, i just took out the title code and selected the template page when i edit the homepage. hope this helps anyone else out.


  7. cdragin
    Posted 7 years ago #

    What if you only want to remove it from one page? I'm OK with all of the pages having the same names as their menu items except for HOME (I'm not using the blog as my home page). Any idea how to change it for just one page? Jeff, I think that's what you're saying you did but I don't quite understand.


  8. abovocipher
    Posted 7 years ago #

    hey cdragin,

    sorry i didn't see this earlier, but to make a template page, just make a copy of the page.php and i named it "home.php" but you can name it watever

    copy all the code from page.php to your new page and include "template name: watever you want" at the top:

    * @package WordPress
    * @subpackage Pretty_Spots
    Template Name: home page

    then scroll down and remove this under the content section:

    <h1><?php the_title(); ?></h1>

    then save. go into your page editor in the wp-admin page and select the template page, watever you named it. you can use that template for any pages that you dont want the title name included.

    let me know if that works for you, or if you have any more questions.

  9. katemm
    Posted 6 years ago #

    Thanks for the help. I've commented out "Home" so it doesn't clutter up the text on my front page, but does appear in the menu.

    I had already made a template just for the home page, which I am editing for the things I want only on the front page.

    Commenting out <?php the_title(); ?> did it.

Topic Closed

This topic has been closed to new replies.

About this Topic