How to Place Ads Box Before The Post Title in WordPress Thesis Theme?

 

Every website owners want to display their ads in header, sidebar, footer, and inside the post above or below. I already explain abouthow to place ad box inside the post of thesis theme. Here, you can learn about how to place the ad before the post title of thesis theme.

In some sites you will see above the post title they place social bookmark icons, welcome the readers, and advertisement. So in this below video I explain the procedure to place the ads in thesis theme.

Here I am using the widgetized ads box. By default you see only sidebar 1 and 2.

After copying this code you will see a new widgets.

To do this, click custom file editor and edit custom_function.php

Copy and paste this below code into custom_function.php

/***BUILD AD WIDGET INSIDE POST paste in custom_functiom.php***/
 register_sidebars(1,
 array(
 'name' => 'Post_aboveAD',
 'before_widget' => '<li class="widget %2$s" id="%1$s">',

'after_widget' => '</li>',
 'before_title' => '<h3>',
'after_title' => '</h3>')

);

function post_abovead() { ?>

<div id="post_abovead" class="sidebar">

<ul class="sidebar_list">

<?php thesis_default_widget(3); ?>

</ul>
</div> 

<?php }

add_action('thesis_hook_before_post_box', 'post_abovead', '1');

/***POST AD WIDGET END***/

Copy and paste this below code into custom.css

/* CODE FOR CUSTOM.CSS FILE*/

.custom #post_ad ul.sidebar_list li.widget h3 {text-indent:0; padding-top:0.2em; color:#111; font-size:15px; font-family:georgia; background:none;}
.custom #post_ad ul.sidebar_list li.widget ul { }
  • Now, Go to appearance select widgets In this right side you will see a new widget in the name of Post_aboveAD
  • To display your AD in this widgets drag and drop the text widget into this Post_aboveAD. Paste the Ad code in this text widget. Then click save.
  • Now, refresh your site you will see the advertisement in the above post. Do you have any questions about thesis theme click here.

Share your experience in comment section below: and For more checkout our all Thesis theme tutorials..

{ 10 comments… add one }

Leave a Comment

  • Suresh January 20, 2010, 8:14 PM

    why? it is working in this thesis 1.6 theme..

    Reply
    • Pascal January 20, 2010, 9:10 PM

      contact us. i will help you.

      Reply
      • Sergio January 20, 2010, 10:18 PM

        Dear Pascal, I’m very grateful for your disinterested help to solve my problrm.
        Your is a great blog and you are a very nice person.

        Thank yuo again.

        Reply
  • Siddharth July 16, 2010, 7:01 PM

    Wow.
    amazing ever..
    Gonna use it to set up in my blog :)
    Thanks for the share !!

    Reply
  • blogger gurem July 26, 2010, 9:01 PM

    thanks to your tutorial it’s very complete and very helpful

    Reply
  • Dennis Board September 1, 2010, 1:59 AM

    Good Afternoon,

    I am not certain if this is the spot to ask, but I am attempting to add a flash video above the post title on 2 particular pages.

    I want the video to autoplay 1 time and then stop. I have tried using a youtube video, but it looks cheap.

    Can anyone recommend a plug in or the proper code to allow me to do this?

    Thank you in advance.

    Reply
    • Pascal September 1, 2010, 2:28 PM

      If you don’t like the youtube palyer, you can go for flow player or jw player. Flow player would be great to look at. Autoplay possible there.

      Thanks.
      Pascal.

      Reply
  • Paul November 27, 2010, 12:10 AM

    Hi Pascal,

    This is a great blog. I’ve landed here several times today looking for help with thesis!

    I’m hoping you can give me some advice with something I’m trying to do in thesis with widgets. I need to add a widget that is 100% the width of the page and above the post title and sidebar. I would also love to have this just on my homepage.

    Any help you can give me is very much appreciated becuase I have been playing around with this for hours with no breakthrough at all. Even if I know how to add a html table with text in it instead of a widget would help me because I would only need to change the text in it once.

    Thanks for any help you can give me Pascal,
    Paul

    Reply
  • Arbudi August 1, 2012, 11:05 AM

    Thanks Pascal, this is a great enlightenment, seems my problem will be solved.
    Have a nice day.

    Reply