Skip to content

Instantly share code, notes, and snippets.

@jonschr
Created November 9, 2023 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschr/f893803bc3caa5c79cc11db529cbdef7 to your computer and use it in GitHub Desktop.
Save jonschr/f893803bc3caa5c79cc11db529cbdef7 to your computer and use it in GitHub Desktop.
<?php
/**
* The template used for displaying page content in page.php
*
* @package Genesis Block Theme
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div>
<div class="post-content">
<?php
$hide_title = get_post_meta( get_the_ID(), '_genesis_block_theme_hide_title', true );
if ( ! $hide_title ) {
?>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</header>
<?php
} // End if hide title.
<div class="entry-content">
<?php
// Get the content.
the_content( esc_html__( 'Read More', 'genesis-block-theme' ) );
// Post pagination links.
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'genesis-block-theme' ),
'after' => '</div>',
)
);
// Comments template.
comments_template();
?>
</div><!-- .entry-content -->
</div><!-- .post-content-->
</article><!-- #post-## -->
@jonschr
Copy link
Author

jonschr commented Nov 9, 2023

After line 24, we should close php, like "?>" and that doesn't happen, causing an error when the page is edited in elementor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment