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