Jump to content
Sign in to follow this  
princejindal8

How to show top advertisement (Before the Article)

Recommended Posts

princejindal8    0
princejindal8

Hi

 

I want to show advertisements Above The Fold (ATF) at my website, which is Healthy Celeb (http://healthyceleb.com)

 

The ad would be before the article on every post / page. I was doing this before also, but that was with the help of the plugin called Ad Injection.

 

Now, I want to paste some PHP code also, which can't be done by plugin. The code is

 

<?php
if (class_exists('magiks_geo_shortcode_class'))
{
   echo do_shortcode('[m_geocountry locations="US"] HTML for USA [/m_geocountry] [m_geocountry locations="CA,GB"] HTML for Canada and UK [/m_geocountry] [m_geocountry locations="CA,US,GB" display="0"] HTML for everyone else [/m_geocountry]');
}
?>

 

 

I do not know where to paste this code  in the theme template and in which file. Please help me out.

 

Share this post


Link to post
Share on other sites
princejindal8    0
princejindal8

Yes, I want to add this advert on every page and post of the website.

Share this post


Link to post
Share on other sites
princejindal8    0
princejindal8

Can I expect a answer from the experts and moderators over here? It would be great if you can help me out.

 

What changes should be done in the code and where the above code should be pasted in the theme to get the banner / advertisement shown before every article / page of the website.

 

I have already installed the plugin for the above code to work.

 

If there is any CSS required, kindly tell me that also.

Thanks in advance

Edited by princejindal8 (see edit history)

Share this post


Link to post
Share on other sites
Simon    247
Simon

Install the free action map plugin from the store

Then that will show you which 'hook' to use

You will need to use the Wordpress function add_action()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • mmnauman
      By mmnauman
      I want ads to be in footer like sticky bar with close button please help me and give me the script for http://www.latestgames2.com/
    • honeytrek
      By honeytrek
      Trying to do two things in my layout.
       
      #1. Resize my right sidebar to be 460px width (currently it is 320px).
       
      #2. I have made a smaller logo, which i want to be on the same line as a leaderboad ad unit that is 728*90 px. Logo on the left and this ad unit on the right, all of this just above the nav bar, as little white space as possible above and below.
       
      Thanks guys.
      Mike
       
      Website URL: www.HoneyTrek.com
      Framework Version:  Pagelines Platform Pro 1.5.3 (my system will not allow me to upgrade to 1.6.0 for some reason.
      WordPress Version: 3.8
      Plugins in Use: numerous
      Server/Host: BlueHost.com
      Screenshots:
      Details: see above
    • bloggotech
      By bloggotech
      Hello,
       
      I've been using pagelines by wordpress for a few months now and I need help. I was wondering how you could add a 468 x 60 ad near the logo on my blog, www.blogdude.co.uk. I can't seem to find it in the pagelines settings either. I was wondering if this is possible
       
      Thanks,
       
      Kevin
    • atwr
      By atwr
      Hi There,

      Can anybody explain to me why I get banners on my homepage when I haven't put them there myself?
      They appear occasionally at the bottom of the site underneath the Pagelines icon.

      I've tried to include a screenshot, but no

      The banners are published on this domain: www.actcommunicatie.nl
×