Page not working, html code messed up..help!!
-
I need major help..I was trying to copy and paste adsense code into the main index code. I apparently pasted it in the wrong place and now my site isn’t even working. When I try to log on it says:
Parse error: syntax error, unexpected ‘<‘ in /home/onezerid/public_html/wp-content/themes/tigopedia-reloaded-10/index.php on line 28The code in the main index of the theme editor currently reads:
<?php
/*
Theme Name: Tigopedia Reloaded
Theme URI: https://www.sizlopedia.com/tigopedia/
Description: Adsense-Ready Curvy SEO Theme For WordPress
Author: Sizlopedia
Author URI: https://www.sizlopedia.com
Version: 1.0
*/get_header();
get_sidebar();?>
<!– ########################### The Loop – Begin ################################### –>
<?php if (have_posts()) : ?>
<!– If there are any posts, iterate over each post –>
<?php while (have_posts()) : the_post(); ?><!– Print the title of the post –>
<div class=”center-widget”><h2>
<a class=”post-title”
href=”<?php the_permalink() ?>”
rel=”bookmark” title=”Permanent Link to <?php the_title();
<?php the_title(); ?></h2>
<!– The article content –>
<div class=”post-content”>
<?php the_content(_t(‘Read the rest of this entry »’)); ?>
</div> <!– post-content –><!– Metadata –>
<div class=”post-metadata”>
<?php _te(‘Posted By ‘); the_author(); ?>
<?php _te(‘ in ‘); the_category(‘, ‘); ?> |
<?php edit_post_link(_t(‘Edit’),”,’ |‘); ?>
<?php comments_popup_link(_t(‘No Comments’), _t(‘1 Comment’), _t(‘% Comments’)); ?>
<?php _te(‘ on ‘); the_time(_t(‘F jS, Y’)) ?>
</div>
<!– Traceback autodiscovery –>
<!– <?php trackback_rdf(); ?> –>
</div> <!– center-widget –>
<!– End of the loop –>
<?php endwhile; ?>
<!– Page Navigation –>
<?php
global $wpdb, $posts_per_page, $fromwhere, $matches, $max_num_pages,
$request, $posts_per_page;
if (! is_single()) {
if (get_query_var(‘what_to_show’) == ‘posts’) {
if ( ! isset($max_num_pages) ) {
preg_match(‘#FROM (.*) GROUP BY#’, $request, $matches);
$fromwhere = $matches[1];
$numposts = $wpdb->get_var(“SELECT COUNT(ID) FROM $fromwhere”);
$max_num_pages = ceil($numposts / $posts_per_page);
}
} else {
$max_num_pages = 999999;
}if ($max_num_pages > 1) {
?>
<div class=”center-widget”>
<div class=”bottom-page-nav”>
<?php posts_nav_link(”, ”, _t(‘« Previous Entries’)); ?>
|
<?php posts_nav_link(”, _t(‘Next Entries »’), ”); ?>
</div>
</div> <!– center-widget –>
<?php
}
}
?><!– If no post is found… –>
<?php else : ?>
<div class=”center-widget-title”><?php _te(‘Error!’); ?></div>
<div class=”center-widget”>
<h2><?php _te(‘Not Found’); ?></h2>
<p><?php _te(“Sorry, but you are looking for something that isn’t here.”); ?></p>
</div> <!– center-widget –>
<?php endif; ?>
<!– ########################### The Loop – End ##################################### –><?php get_footer(); ?><script type=”text/javascript”><!–
google_ad_client = “pub-6516359214240153”;
//300×250, created 1/18/08
google_ad_slot = “4596847013”;
google_ad_width = 300;
google_ad_height = 250;
//–></script>I have NO experience with html, so this is really hard for me. If someone could PLEASE take a look at this and offer some help I would greatly appreciate it, as I am feeling like I just screwed up my entire blog.
Thanks so much!
- The topic ‘Page not working, html code messed up..help!!’ is closed to new replies.