Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/Divi
File: index.php
<?php get_header(); ?>
[0] Fix | Delete
[1] Fix | Delete
<div id="main-content">
[2] Fix | Delete
<div class="container">
[3] Fix | Delete
<div id="content-area" class="clearfix">
[4] Fix | Delete
<div id="left-area">
[5] Fix | Delete
<?php
[6] Fix | Delete
if ( have_posts() ) :
[7] Fix | Delete
while ( have_posts() ) : the_post();
[8] Fix | Delete
$post_format = et_pb_post_format(); ?>
[9] Fix | Delete
[10] Fix | Delete
<article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>>
[11] Fix | Delete
[12] Fix | Delete
<?php
[13] Fix | Delete
$thumb = '';
[14] Fix | Delete
[15] Fix | Delete
$width = (int) apply_filters( 'et_pb_index_blog_image_width', 1080 );
[16] Fix | Delete
[17] Fix | Delete
$height = (int) apply_filters( 'et_pb_index_blog_image_height', 675 );
[18] Fix | Delete
$classtext = 'et_pb_post_main_image';
[19] Fix | Delete
$titletext = get_the_title();
[20] Fix | Delete
$alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
[21] Fix | Delete
$thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Blogimage' );
[22] Fix | Delete
$thumb = $thumbnail["thumb"];
[23] Fix | Delete
[24] Fix | Delete
et_divi_post_format_content();
[25] Fix | Delete
[26] Fix | Delete
if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) {
[27] Fix | Delete
if ( 'video' === $post_format && false !== ( $first_video = et_get_first_video() ) ) :
[28] Fix | Delete
printf(
[29] Fix | Delete
'<div class="et_main_video_container">
[30] Fix | Delete
%1$s
[31] Fix | Delete
</div>',
[32] Fix | Delete
et_core_esc_previously( $first_video )
[33] Fix | Delete
);
[34] Fix | Delete
elseif ( ! in_array( $post_format, array( 'gallery' ) ) && 'on' === et_get_option( 'divi_thumbnails_index', 'on' ) && '' !== $thumb ) : ?>
[35] Fix | Delete
<a class="entry-featured-image-url" href="<?php the_permalink(); ?>">
[36] Fix | Delete
<?php print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height ); ?>
[37] Fix | Delete
</a>
[38] Fix | Delete
<?php
[39] Fix | Delete
elseif ( 'gallery' === $post_format ) :
[40] Fix | Delete
et_pb_gallery_images();
[41] Fix | Delete
endif;
[42] Fix | Delete
} ?>
[43] Fix | Delete
[44] Fix | Delete
<?php if ( ! in_array( $post_format, array( 'link', 'audio', 'quote' ) ) ) : ?>
[45] Fix | Delete
<?php if ( ! in_array( $post_format, array( 'link', 'audio' ) ) ) : ?>
[46] Fix | Delete
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
[47] Fix | Delete
<?php endif; ?>
[48] Fix | Delete
[49] Fix | Delete
<?php
[50] Fix | Delete
et_divi_post_meta();
[51] Fix | Delete
[52] Fix | Delete
if ( 'on' !== et_get_option( 'divi_blog_style', 'false' ) || ( is_search() && ( 'on' === get_post_meta( get_the_ID(), '_et_pb_use_builder', true ) ) ) ) {
[53] Fix | Delete
truncate_post( 270 );
[54] Fix | Delete
} else {
[55] Fix | Delete
the_content();
[56] Fix | Delete
}
[57] Fix | Delete
?>
[58] Fix | Delete
<?php endif; ?>
[59] Fix | Delete
[60] Fix | Delete
</article> <!-- .et_pb_post -->
[61] Fix | Delete
<?php
[62] Fix | Delete
endwhile;
[63] Fix | Delete
[64] Fix | Delete
if ( function_exists( 'wp_pagenavi' ) )
[65] Fix | Delete
wp_pagenavi();
[66] Fix | Delete
else
[67] Fix | Delete
get_template_part( 'includes/navigation', 'index' );
[68] Fix | Delete
else :
[69] Fix | Delete
get_template_part( 'includes/no-results', 'index' );
[70] Fix | Delete
endif;
[71] Fix | Delete
?>
[72] Fix | Delete
</div> <!-- #left-area -->
[73] Fix | Delete
[74] Fix | Delete
<?php get_sidebar(); ?>
[75] Fix | Delete
</div> <!-- #content-area -->
[76] Fix | Delete
</div> <!-- .container -->
[77] Fix | Delete
</div> <!-- #main-content -->
[78] Fix | Delete
[79] Fix | Delete
<?php
[80] Fix | Delete
[81] Fix | Delete
get_footer();
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function