• I am using WordPress for both a static webpage and a blog. Because I want full control of the page contents, I have disabled the Page titles using the following code

    .hentry .post-title h1 {
    	margin-top: 0;
    	display: none;
    }

    Unfortunately this also disables the post titles when I click through the loop. Is there any way I can have the Page titles disabled while still showing the Post titles?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Hi

    Generally pages are displayed using the page.php template and blog posts using the index.php template.

    You would be better off putting the CSS back to the way it was before you changed it and just remove the PHP code that displays the page title in your theme’s page.php template file. Usually it will be the_title()

    That way it will display for posts and not for pages.

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying blog post titles without displaying Page titles’ is closed to new replies.