WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can I hide a Pages title? (8 posts)

  1. bbrody
    Member
    Posted 4 years ago #

    How can I hide the page title from visitors?

    I want to use my own headline instead of having the page title as the headline.

    Here's a link to the site
    you'll see what I mean on that page.

    All help is appreciated.

  2. jessn
    Member
    Posted 4 years ago #

    Open up page.php and delete the line that will look something like this:

    <h2><?php the_title() ?></h2>
  3. Edward Caissie
    Theme Review Admin
    Posted 4 years ago #

    From your site example ...

    Using CSS , try adding an additional property to one of the .entry-title elements (for example at line 171, per FireBug):

    .element-title {
      margin: 0;
      padding: 0;
      display: none;
    }

    Although I am not sure you are referring directly to that particular "Test Page Title" it may be what you are trying to accomplish. The key to this idea is adding the 'display:none;' property.

    Hope it helps some ...

  4. velee81
    Member
    Posted 4 years ago #

    I have same problem before too,

    This is the tips I got from Mark,

    "In most cases, you need to edit the page.php file in the files for your theme. Some themes also have a home.php file for the home page, but most free themes do not.
    You can edit the file using a text editor and FTP software, or you can do it using Appearance > Editor in the WordPress Dashboard. Either way, you should keep a copy of the original file in case something goes wrong.
    Open the page.php file and find the code that looks something like:
    <h1><?php the_title(); ?></h1>
    or
    <h2><?php the_title(); ?></h2>
    Modify it so that it looks like this:
    <!-- h1><?php the_title(); ?></h1 -->
    or
    <!-- h2><?php the_title(); ?></h2 -->
    On the left side, you are replacing the < with < an exclamation point, two dashes and a space. On the right side, you are replacing the > with a space, two dashes and a >
    Be sure to click the Update/Save button to save the changes.
    If you are using a text editor and FTP software, upload the file to the server after saving the changes.
    Now the header, such as “Home” on the Home page (the title of the page), will not show up in a browser when you view the page. This applies to every page on your site. To correct this on pages where you want the header to show up, you can add it using the HTML editing window in the Dashboard.
    For example, to put “Home” back on the Home page, click on the HTML editing tab in the Dashboard when editing the Home page and insert
    <h1>Home</h1>
    at the top of the page.
    You can also create a page template that has no header and select that for your Home page. This is more complicated. If I have time, maybe I will make a video tutorial to show how to do that. Or let me know if you would like me to help you with that on a consulting basis. It would not take very long to do."

  5. bbrody
    Member
    Posted 4 years ago #

    Hey guys, thanks for the suggestions.

    I'm gonna try 'em out

    Thanks again

  6. nikcree
    Member
    Posted 4 years ago #

    There is a great video showing step-by-step how to Hide a Pages Title by editing the page.php file at:

    http://www.positivebusinessonline.com/hide-wordpress-page-title

  7. Tessa
    Member
    Posted 4 years ago #

    I tried what cais suggested and it worked well. However, it removed blog titles too, which I don't want- I'll keep looking :)

  8. noig
    Member
    Posted 4 years ago #

    thanks for the above link, it worked smoothly!

Topic Closed

This topic has been closed to new replies.

About this Topic