• Resolved roniewp

    (@roniewp)


    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter roniewp

    (@roniewp)

    fixed!

    How did you solve this?

    NOT resolved for me, unfortunately.

    William

    (@wisemasterchief)

    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

    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

    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

    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.

    katemm

    (@katemm)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘remove title of the page’ is closed to new replies.