Support » Plugin: AdRotate Banner Manager » Where to add code for banner ad?

  • Resolved alecash


    Please help! I have created a banner advert test in AdRotate, which I wish to display at the top of the side, above the top menu and below the top logo/branding. Where in header.php or any other file would I add this code?

    echo adrotate_ad(‘test’)

    As far as I can tell, adding the code is the only way for me to position the advert as a top banner, as widgets only apply to the side column.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arnan de Gans


    In your header.php look for <!-- .custom-header -->

    And place your code directly below it on a new line, something like:

    <?php echo adrotate_group('1'); ?>

    Better to use a group, so that if you change the banner you can do so in the group settings instead of editing the file again.



    I can’t find that custom-header line. This is the entirely of the code in the header.php file, inside themes>dara-child-theme-01 as we use that child theme:

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <link rel=”profile” href=”″&gt;
    <script src=””></script&gt;
    <script>try{Typekit.load({ async: true });}catch(e){}</script>
    <?php wp_head(); ?>

    <body <?php body_class(); ?>>
    <div id=”page” class=”site”>
    <?php esc_html_e( ‘Skip to content’, ‘dara’ ); ?>

    <header id=”masthead” class=”site-header” role=”banner”>

    <?php get_template_part( ‘components/header/custom’, ‘header’ ); ?>

    <?php get_template_part( ‘components/header/site’, ‘branding’ ); ?>

    <?php get_template_part( ‘components/navigation/navigation’, ‘top’ ); ?>


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to add code for banner ad?’ is closed to new replies.