Top Advertisement Code

Discussion in 'BlogsTrend WordPress Theme' started by myallenmedia, Jul 17, 2014.

  1. myallenmedia

    myallenmedia Member

    Joined:
    Apr 2, 2013
    Messages:
    51
    Likes Received:
    0
    I'm using the BlogsTrend theme and the Top Advertisement Code only allows for one block of code. I'm using a advertising plugin and it lets me put a shortcode on any page/post to display banner ads. I tried to add the shortcode to the Top Advertisement Code box but it won't display it. How can I get that top area to display several ads I have by using a shortcode?
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    For this open "header.php" file and add shortcode in the code formate given below.

    Code:
    <?php echo do_shortcode('ADD SHORTCODE HERE'); ?>
    Thanks & Regards
    Nitesh Raghuwanshi
     
  3. myallenmedia

    myallenmedia Member

    Joined:
    Apr 2, 2013
    Messages:
    51
    Likes Received:
    0
    Where in that file does it get added?
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Go to the header.php file present in your theme directory and paste the code given below in that file as instructed in the image given below.

    Code:
    <?php echo do_shortcode('ADD SHORTCODE HERE'); ?> 
    [​IMG]
     
  5. myallenmedia

    myallenmedia Member

    Joined:
    Apr 2, 2013
    Messages:
    51
    Likes Received:
    0
    Didn't work. If you install the Advertising Manager plugin and then create an ad. Then add that shortcode to the box or the file that you stated it just won't work. The shortcode looks like this: [ad#adname]

    The word "adname" is just the name you called the ad.
     
  6. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    For add placement you can use another plugin. If current one is not working for header. Or
    Directly add adsense code in the header.php file.

    Thanks & Regards
    Nitesh Raghuwanshi
     

Share This Page