• Resolved mrwweb

    (@mrwweb)


    The Grid page is awesome since it populates content from child pages. However, if the body of the parent page using the “Grid Template” is left empty, the Page Title (<h1>) is also hidden. Very unexpected. I added a duplicate Heading 1 to the body so there’d be a title, only to discover that now I had TWO Titles since the body field was now full and the title displayed as expected.

Viewing 1 replies (of 1 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Thanks a alot for letting us know about this. While we agree it’s not ideal, it doesn’t look like something we can change at this point since the theme’s been “in the wild” for too long and users who had not previously seen a page title on the grid page would now suddenly see one if we modified the way this template works. Sorry about that.

    If anyone else needs to modify the way this works in the future to display the page title even with no page editor content, they could remove this condition in a child theme:

    <?php if ( '' != $post->post_content ) : // only display if content not empty ?>

    from /page-templates/grid-page.php

Viewing 1 replies (of 1 total)
  • The topic ‘Grid Page Title Hidden if Body Left Empty’ is closed to new replies.