Support » Fixing WordPress » How to remove page titles

  • webmind


    How can I remove page titles? One guy said to add the following line to my stylesheet: {display:none;}

    So I did that and my stylesheet looks like this:

    .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;

    .alignleft {
    float: left;

    .alignright {
    float: right;
    } {display:none;}

    Unfortunately, it does not seem to have made any changes to the style of the website, particularly with respect to the page titles. They still appear as before.

    Any suggestions as to what I’m doing wrong, or how I can remove page titles from appearing at the top of the center page block? I think they look stupid and redundant. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi


    Forum Moderator

    A link to your site might help…



    Hi esmi,

    It’s me again. Sorry I missed you last time, and forgot the link!

    PS. Do you do consulting work? I’m looking for a good WordPress consultant to help me install and maintain sites.



    Comment out the code in your index or page template: <?php the_title(); ?>

    You can delete it but commenting it out leaves it there in case you change your mind.

    Personally, I wouldn’t do this. A page title is a good thing for SEO, since it generally repeats what is in the title tag and semantically is high in the heirarchy of what’s considered by search engines.




    BTW, you place // in front of the function to comment it out (inside the php tag) or wrap it with /* */



    Forum Moderator

    I agree with syncbox. You need the page heading to be available for search engines but there might be a way to take it off the page in graphical browsers but still leave for the engines. Try adding the following to the bottom of your stylesheet:

    .post h2,.page h2 {

    And in answer to your earlier question, yes, I’m a professional developer. If you need to get in touch with me, see

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove page titles’ is closed to new replies.