• The page I’m asking about is here.

    On this page, I want to make the word “Portfolio” (which is the page title) disappear.

    However, I want the word “Portfolio” to stay in the menu and tab and URL and all that. So I thought I’d just do an inline style for that one title’s font-color to be the exact same color as the background. Is that the best way to make the word disappear?

    And if so, where do I find the code for that one single page title? I don’t want to make ALL the page titles disappear.

    On my home page, I managed to get the page to be called “home” in the menu with no page title, but I don’t know how I did that, or if it would work for a non-home-page.

    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 9105421

    (@anonymized-9105421)

    You can do that with Templates:
    https://codex.www.ads-software.com/Pages#Page_Templates

    In the folder of the theme you are using there will probably be a file:

    page.php

    just make a duplicate of it and rename the duplicate to something like:

    page-no-title.php

    Then open it in a text editor (like Notepad++) and add this code right on top after the “<?php

    /*
    Template Name: Page no Title
    */

    Then you get:

    <?php 
    
    /*
    Template Name: Page no Title
    */
    
    ...

    Then look for a line like:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Remove that line, that is what displayes the title. Then save the file.

    Upload the edited “page-no-title.php” to your server in the folder of your theme.

    Then go to online to your WordPress admin to edit that page. On the editing page you should see a menu “Page Attributes” with on it a drop down list “Templates”, Look in that dropdown, you should now have a option “Page no Title”. Select it and update your page. When all went well you then should have a page without title.

    Succes.

    Thread Starter BetsyS

    (@betsys)

    Cool. I think I actually followed all that. I’ll give it a try later. Thank you so much for your explanation; I’m grateful.

    Anonymous User 9105421

    (@anonymized-9105421)

    Your welcome. Just giving back a little for the help i just recieved ??

    Succes working it out!

    Anonymous User 9105421

    (@anonymized-9105421)

    PS you can re-use that template when you would want more pages without a title.

    When you want text to end up on same hight as page with title then it will probably work to leave the “markup” of the title in the template like:

    <h2></h2>
    
    or 
    
    <h1></h1>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I make a single page title disappear?’ is closed to new replies.