Created
November 9, 2023 19:20
-
-
Save jonschr/f893803bc3caa5c79cc11db529cbdef7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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-## --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After line 24, we should close php, like "?>" and that doesn't happen, causing an error when the page is edited in elementor.