Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi
File: page-template-blank.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
Template Name: Blank Page
[2] Fix | Delete
*/
[3] Fix | Delete
[4] Fix | Delete
get_header();
[5] Fix | Delete
[6] Fix | Delete
$post_id = get_the_ID();
[7] Fix | Delete
$is_page_builder_used = et_pb_is_pagebuilder_used( $post_id );
[8] Fix | Delete
$container_tag = 'product' === get_post_type( $post_id ) ? 'div' : 'article'; ?>
[9] Fix | Delete
[10] Fix | Delete
<div id="main-content">
[11] Fix | Delete
[12] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[13] Fix | Delete
[14] Fix | Delete
<div class="container">
[15] Fix | Delete
<div id="content-area" class="clearfix">
[16] Fix | Delete
<div id="left-area">
[17] Fix | Delete
[18] Fix | Delete
<?php endif; ?>
[19] Fix | Delete
[20] Fix | Delete
<?php while ( have_posts() ) : the_post(); ?>
[21] Fix | Delete
[22] Fix | Delete
<<?php echo $container_tag; ?> id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
[23] Fix | Delete
[24] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[25] Fix | Delete
[26] Fix | Delete
<h1 class="main_title"><?php the_title(); ?></h1>
[27] Fix | Delete
<?php
[28] Fix | Delete
$thumb = '';
[29] Fix | Delete
[30] Fix | Delete
$width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 );
[31] Fix | Delete
[32] Fix | Delete
$height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 );
[33] Fix | Delete
$classtext = 'et_featured_image';
[34] Fix | Delete
$titletext = get_the_title();
[35] Fix | Delete
$alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
[36] Fix | Delete
$thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Blogimage' );
[37] Fix | Delete
$thumb = $thumbnail["thumb"];
[38] Fix | Delete
[39] Fix | Delete
if ( 'on' === et_get_option( 'divi_page_thumbnails', 'false' ) && '' !== $thumb )
[40] Fix | Delete
print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height );
[41] Fix | Delete
?>
[42] Fix | Delete
[43] Fix | Delete
<?php endif; ?>
[44] Fix | Delete
[45] Fix | Delete
<div class="entry-content">
[46] Fix | Delete
<?php
[47] Fix | Delete
the_content();
[48] Fix | Delete
[49] Fix | Delete
if ( ! $is_page_builder_used )
[50] Fix | Delete
wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'Divi' ), 'after' => '</div>' ) );
[51] Fix | Delete
?>
[52] Fix | Delete
</div> <!-- .entry-content -->
[53] Fix | Delete
[54] Fix | Delete
<?php
[55] Fix | Delete
if ( ! $is_page_builder_used && comments_open() && 'on' === et_get_option( 'divi_show_pagescomments', 'false' ) ) comments_template( '', true );
[56] Fix | Delete
?>
[57] Fix | Delete
[58] Fix | Delete
</<?php echo $container_tag; ?>> <!-- .et_pb_post -->
[59] Fix | Delete
[60] Fix | Delete
<?php endwhile; ?>
[61] Fix | Delete
[62] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[63] Fix | Delete
[64] Fix | Delete
</div> <!-- #left-area -->
[65] Fix | Delete
[66] Fix | Delete
<?php get_sidebar(); ?>
[67] Fix | Delete
</div> <!-- #content-area -->
[68] Fix | Delete
</div> <!-- .container -->
[69] Fix | Delete
[70] Fix | Delete
<?php endif; ?>
[71] Fix | Delete
[72] Fix | Delete
</div> <!-- #main-content -->
[73] Fix | Delete
[74] Fix | Delete
<?php
[75] Fix | Delete
[76] Fix | Delete
get_footer();
[77] Fix | Delete
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function