Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 12-31-2008, 02:12 PM   #1
Senior Warrior Member
War Room Member
 
JamesPenn's Avatar
 
Join Date: Apr 2006
Location: Exeter, United Kingdom.
Posts: 1,356
Thanks: 174
Thanked 505 Times in 100 Posts
Social Networking View Member's Twitter Profile 
Default Quick code fix, please

Hi guys

Just wondering if anyone can help me quickly and fix my coding. I just tried adding an adsense unit to the top of Natural Health Blog | Natural Detox, Anti-Aging, Beauty & Weight Loss Tips & Secrets

Obviously I took something out and now the text continues right across the page. If this could be amended that would be much appreciated.

And also if an adsense ad with this code could be added above the heading of the blog post "Bee Therapy (AKA Apitherapy)"

Adsense code:

<script type="text/javascript"><!--
google_ad_client = "pub-5141259668140493";
/* RYH Top */
google_ad_slot = "2683954320";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

==========================


Here is the current code for the page:

=================================

<?php
get_header();
?>
</div>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">

<h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div class="date"><?php the_date()?></div>

<div class="storycontent">
<?php the_content(__(' ...read the rest of this post')); ?>
<br />
<p><?php if (get_the_tags()) the_tags('Tagged with: ',' &bull; ',''); ?> </p>
</div>

<?php if (!is_single()) :?>
<div class="feedback">
<a href="<?php the_permalink() ?>#postcomment"><?php comments_number(__('no comments yet'), __('1 comment'), __('% comments')); ?> to <?php the_title(); ?></a>
</div>
<?php endif;?>

</div>

<?php comments_template(); // Get wp-comments.php template ?>

<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

<div id="pnl"><?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?> </div><script type="text/javascript" src="http://forms.aweber.com/form/11/1873564811.js"></script>

<?php get_footer(); ?>

===========================


If anyone could fix the code and add the adsense code it would be much appreciated.

Thanks so much

James Penn

JamesPenn is online now   Reply With Quote
Old 12-31-2008, 08:13 PM   #2
PHP & Drupal Ninja
 
Darren Mothersele's Avatar
 
Join Date: May 2007
Location: London, United Kingdom.
Posts: 108
Thanks: 11
Thanked 18 Times in 14 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via AIM to Darren Mothersele Send a message via Skype™ to Darren Mothersele
Default Re: Quick code fix, please

Take out that first end div (</div>) after get_header()

The firefox extension called Firebug is your friend at times like this.

in the generated code, this...

Code:
<div id="container">
<div id="content">
<!-- end header -->
</div>
needs to look like this...

Code:
<div id="container">

<div id="content">
<!-- end header -->

Darren Mothersele is offline   Reply With Quote
Old 01-02-2009, 01:45 AM   #3
Active Warrior
 
Join Date: Sep 2008
Posts: 55
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: Quick code fix, please

i cant see the error, but it thing its fixed?
But if its still there on some browsers I will need to see the header code its included from header.php in the header function above

Shadi is offline   Reply With Quote
Old 01-02-2009, 06:10 AM   #4
Senior Warrior Member
War Room Member
 
JamesPenn's Avatar
 
Join Date: Apr 2006
Location: Exeter, United Kingdom.
Posts: 1,356
Thanks: 174
Thanked 505 Times in 100 Posts
Social Networking View Member's Twitter Profile 
Default Re: Quick code fix, please

Thanks a lot Darren for the help. I've managed to fix it now and add the adsense code.

James

JamesPenn is online now   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
code, fix, quick

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 09:36 PM.