• Resolved SteveFromAus

    (@stevefromaus)


    Hi all,

    How do I remove the page title from a page?. A user has already reached the page or post from a link, and the link is highlighted, so they know where they are, so it seems supefluous to have it at the start of a page.

    Regards,

    Steve

Viewing 6 replies - 1 through 6 (of 6 total)
  • Not sure what theme you are using, but the first solution I would try is find page.php (Page Template) in your theme folder (or via the Appearance > Editor – remember to take a copy before changing) and comment out or remove:

    <h1><?php the_title(); ?></h1>

    Thread Starter SteveFromAus

    (@stevefromaus)

    I am using Twenty Sixteen. I can’t find the page.php file, where would it be? It doesn’t show up in the appearance/editor. I am using a Twenty Sixteen child theme.

    Regards,

    Steve

    Thread Starter SteveFromAus

    (@stevefromaus)

    I have found the page.php file, but there is no entry like this.

    Tia Wood

    (@meganerd2014)

    Hi, Steve.

    It should be in /template-parts/content-page.php around line 13. Remove this part:

    <header class="entry-header">
        <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
    </header><!-- .entry-header -->
    Thread Starter SteveFromAus

    (@stevefromaus)

    Thanks,

    I have found another way to do it, I added .entry-title {display: none;} to my custom css file.

    Steve

    Just found your solution, SteveFromUs. I’ve spent too much time trying to figure this out. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove heading from page or post’ is closed to new replies.