Deleted Code
-
I was removing adsense code from single.php and must have deleted code also as the body of the posts won’t show up on my site. The home page is intact but now when a post is clicked on, it says ‘the page isn’t working (my site) isn’t able to handle this request.’
Here is what single.php currently looks like:
* @package kale
*/
?>
<?php get_header(); ?>$kale_posts_meta_show = kale_get_option(‘kale_posts_meta_show’);
$kale_posts_date_show = kale_get_option(‘kale_posts_date_show’);
$kale_posts_category_show = kale_get_option(‘kale_posts_category_show’);
$kale_posts_author_show = kale_get_option(‘kale_posts_author_show’);
$kale_posts_tags_show = kale_get_option(‘kale_posts_tags_show’);
$kale_posts_sidebar = kale_get_option(‘kale_posts_sidebar’);
$kale_posts_featured_image_show = kale_get_option(‘kale_posts_featured_image_show’);
$kale_sidebar_size = kale_get_option(‘kale_sidebar_size’);
?>
<?php while ( have_posts() ) : the_post(); ?>
<!– Two Columns –>
<div class=”row two-columns”><!– Main Column –>
<?php if($kale_posts_sidebar == 1) { ?>
<div class=”main-column <?php if($kale_sidebar_size == 0) { ?> col-md-8 <?php } else { ?> col-md-9 <?php } ?>”>
<?php } else { ?>
<div class=”main-column col-md-12″>
<?php } ?><!– Post Content –>
<div id=”post-<?php the_ID(); ?>” <?php post_class(‘entry entry-post’); ?>><div class=”entry-header”>
<?php if($kale_posts_meta_show == 1 && $kale_posts_date_show == 1) { ?>
<div class=”entry-meta”>
<div class=”entry-date date updated”><?php the_date(); ?></div>
</div>
<?php } ?>
<div class=”clearfix”></div>
</div><?php $title = get_the_title(); ?>
<?php if($title == ”) { ?>
<h1 class=”entry-title”><?php esc_html_e(‘Post ID: ‘, ‘kale’); the_ID(); ?></h1>
<?php } else { ?>
<h1 class=”entry-title”><?php the_title(); ?></h1>
<?php } ?><?php
if($kale_posts_featured_image_show == 1) {
if(has_post_thumbnail()) { ?>
<div class=”entry-thumb”><?php the_post_thumbnail( ‘full’, array( ‘alt’ => get_the_title(), ‘class’=>’img-responsive’ ) ); ?></div><?php }
} ?>
<?php wp_link_pages(); ?>
</div><?php if( ( $kale_posts_meta_show == 1 && ($kale_posts_category_show == 1 || $kale_posts_tags_show == 1 || $kale_posts_author_show == 1) ) ) { ?>
<div class=”entry-footer”>
<div class=”entry-meta”>
The topic ‘Deleted Code’ is closed to new replies.
