WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. roniewp
    Member
    Posted 5 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.

    thanks!

  2. roniewp
    Member
    Posted 5 years ago #

    fixed!

  3. Sneldog
    Member
    Posted 4 years ago #

    How did you solve this?

  4. Sneldog
    Member
    Posted 4 years ago #

    NOT resolved for me, unfortunately.

  5. William
    Member
    Posted 4 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.

    regards,
    William

  6. abovocipher
    Member
    Posted 4 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.

    -jeff

  7. cdragin
    Member
    Posted 4 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.

    -cd

  8. abovocipher
    Member
    Posted 4 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:

    <?php
    /**
    * @package WordPress
    * @subpackage Pretty_Spots
    Template Name: home page
    */
    get_header();
    ?>

    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
    Member
    Posted 4 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