How to achieve this Goal? Thesis Pros Only

Discussion in 'WordPress' started by davidmethew, Jun 18, 2011.

  1. #1
    Dear All,

    I want to have an adsense text box aligned to the blog content just below the title of the post and secondly right aligned just in the middle of the post. How to achieve this Goal?

    Thanks,
     
    davidmethew, Jun 18, 2011 IP
  2. atnews

    atnews Peon

    Messages:
    277
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are many plugins available but here are 2 best of them. 1. adsense integrator 2. post layout

    Install these plugins and place ad after the title, between post, after the post etc.
     
    atnews, Jun 19, 2011 IP
  3. davidmethew

    davidmethew Active Member

    Messages:
    368
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #3
    which the best plugin amoung them,
    I am using thesis theme is there any tutorial just to align text around adsense box, align left aligh right etc
     
    davidmethew, Jun 19, 2011 IP
  4. atnews

    atnews Peon

    Messages:
    277
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    both plugins are best
     
    atnews, Jun 19, 2011 IP
  5. WiserX

    WiserX Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Simply use custom functions:). Add the following to your thesis custom function file.

    
    //start copy here
    
    
    function single_post_ads() {
    if (is_single()) { ?>
    <div class="your custom css style to align left/right"><br /><script type="text/javascript"><!--
    google_ad_client = "xxxxxxxxxxxxxxxxx";
    google_ad_slot = "xxxxxxxxxxx";
    google_ad_width = xx;
    google_ad_height = xx;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></div>
    <?php }
    
    }
    
    add_action('thesis_hook_before_post', 'single_post_ads');
    
    //add_action('thesis_hook_after_post', 'single_post_ads') - use similar another function to change any options;
    
    //stop copy here
    
    
    PHP:
    You must enable custom css & custom function to use this feature.
     
    WiserX, Jun 21, 2011 IP
  6. davidmethew

    davidmethew Active Member

    Messages:
    368
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    this code is not aligning the ads . It gives straight ads. I need a code that align adson left or right side
     
    davidmethew, Aug 2, 2011 IP