[Plugin: Ad Manager] Add "ad location" to theme
-
Can’t do it, here’s how it looks in sidebar.php at the moment:
<?php if( is_acitve_sidebar('Ads-bar')) AdManager()->registerAdLocation('side_ad', __('side_ad')); ?>
I’ve also done it the way given on the website:
if(defined('AdManager::VERSION')) AdManager()->registerAdLocation('after_header', __('After theme header'));
And from my function.php
register_sidebar( array( 'name' => __( 'Ads-bar', 'toolbox' ), 'id' => 'reklam-side', 'description' => __( 'An optional sidebar area specifically for ads', 'toolbox' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => "</aside>", 'before_title' => '<h1 class="widget-title">', 'after_title' => '</h1>', ) );
Doesn’t add a “ad location” though, any help would be welcome!
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Ad Manager] Add "ad location" to theme’ is closed to new replies.