How can i make an ad show up in everybody post in my blog?

Discussion in 'WordPress' started by kahmed09, May 30, 2011.

  1. #1
    i have a blog which i post on pretty much everyday.
    however the layout isnt great and dont want to cram it with loads of ads.

    is there a way i can put a code or set something, so that an 460x80 banner shows up in each post once its clicked?

    if you can do this task please message me... or if you can help me out by telling me how i will still reward you.

    thanks... links below.


    http://adf.ly/1dY1H
     
    kahmed09, May 30, 2011 IP
  2. azhar

    azhar Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    You can log into your wordpress, Goto Appearence >> Editor, Select single.php file, sent or publish the content here in forum. I will say where you need to paste the ad script.
     
    azhar, May 30, 2011 IP
  3. kahmed09

    kahmed09 Well-Known Member

    Messages:
    648
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    125
    #3
    the code is <script type="text/javascript" src="http://adhitzads.com/246880"></script> that i want in every post.
    i will blog about your website and leave it on the homepage for a while if you help me with this. give you a very good review

    <?php get_header(); ?>
    <div id="container">
    <div id="search">
    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="txtField" />
    <input type="submit" id="searchsubmit" class="btnSearch" value="Find It &raquo;" />
    </form>
    </div>
    <div id="menu-holder"><?php include ('navigation.php'); ?></div>
    <div id="title">
    <h2><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h2>
    <?php bloginfo('description'); ?></div>
    </div>
    <div id="content">
    <div class="col01">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <div class="post-inner">
    <div class="date-tab"><span class="month"><?php the_time('F') ?></span><span class="day"><?php the_time('j') ?></span></div>
    <div class="thumbnail"><?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?></div>
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    <div class="meta">posted under <?php the_category(', ') ?></div>
    </div>
    <?php comments_template(); ?>
    <?php endwhile; ?>
    <div class="post-nav"><span class="previous"><?php next_posts_link('&laquo; Older Entries') ?></span><span class="next"><?php previous_posts_link('Newer Entries &raquo;') ?></span></div>
    <?php else : ?>
    <div class="no-results">
    <h3>Not Found</h3>
    <p>Sorry, but you are looking for something that isn't here.</p>
    </div>
    <?php endif; ?>
    </div>
    <div class="col02">
    <div class="recent-posts">
    <?php
    query_posts('showposts=10');
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <ul>
    <li><a href="<?php the_permalink() ?>"><?php the_title() ?><br />
    <span class="listMeta"><?php the_time('g:i a') ?>, <?php the_time('F') ?> <?php the_time('j') ?>, <?php the_time('Y') ?></span></a></li>
    </ul>
    <?php endwhile; endif; ?>
    </div>
    <div class="postit-bottom">&nbsp;</div>
    <?php get_sidebar(); ?>
    </div>
    <br clear="all" />
    </div>
    <?php get_footer(); ?>
     
    kahmed09, May 30, 2011 IP
  4. azhar

    azhar Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    You can paste the add script in between <div class="col01"> and <?php if (have_posts()) : ?>.
    Also change the style sheets with #content .col01 width as 460, currently it is 425

    Please take a back up before you do changes.
     
    azhar, May 30, 2011 IP
  5. kahmed09

    kahmed09 Well-Known Member

    Messages:
    648
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    125
    #5

    it worked perfectly!

    thank you. pm me details of one of your websites i will write a review for it on my blog. as well as a backlink forever.
     
    kahmed09, May 30, 2011 IP
  6. azhar

    azhar Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    No probs buddy!!
     
    azhar, May 30, 2011 IP
  7. uumair

    uumair Greenhorn

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    Use Why do work Adsense Plugin and enter the code there and set the adsense for page no and position
     
    uumair, May 31, 2011 IP