• Resolved kitcarguy

    (@kitcarguy)


    Hey There,

    I am trying to ad a banner either below my slider or in the header of the customizr pro theme with no luck. I have tried what is explained in the docs. Im also having problems getting any ad (other than sidebar) to display on the homepage of my website.

    Any help or experience someone could share would be great.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi kitcarguy,

    thanks for reaching out.

    Which manual did you follow to place ads in the header? Did you use a PHP function in your theme already?

    By default, ads are not automatically injected into the post content on archive pages like the home page to prevent them from turning up too often.

    You can change that behevior with the “Unlimited ad injection” setting in Advanced Ads > Settings > General.

    Please let me know if you need anything else.

    Thomas

    Thread Starter kitcarguy

    (@kitcarguy)

    Hey Thomas,
    Thanks for the quick reply. I used the instructions on your website for getting ads in the header. I believe this was the link https://wpadvancedads.com/place-ads-in-website-header/ . I just could not seem to make it work . Im sure it was just me.

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for your feedback.

    Did you try the first method, using PHP in your theme or do you have a theme option like in the second method?

    Thomas

    Thread Starter kitcarguy

    (@kitcarguy)

    Hey There,

    I tried both methods and could not get it to work in the header.

    Plugin Author Thomas Maier

    (@webzunft)

    If your theme has an option for that header position that also allows shortcodes, then it should work. Most themes actually filter shortcodes out though. If not, then check if the ad code is visible in the site’s code. It might still be an ad network issue if that is what you use it for.

    As for PHP, which is the more stable solution, are you sure you picked the correct file? It is probably header.php, but maybe your theme is structured differently. If the template file is correct, does your ad have any conditions set (display or visitor conditions)?

    Please let me also know if this is too technical.

    Thanks
    Thomas

    Thread Starter kitcarguy

    (@kitcarguy)

    Here is what my unmodified header.php looks like. maybe I am just putting the code in the wrong location?

    }
    ?>
    <!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7 no-js" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8 no-js" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html class="no-js" <?php language_attributes(); ?>>
    <!--<![endif]-->
    	<?php
    		//the '__before_body' hook is used by CZR_header_main::$instance->czr_fn_head_display()
    		do_action( '__before_body' );
    	?>
    
    	<body <?php body_class(); ?> <?php echo apply_filters('tc_body_attributes' , 'itemscope itemtype="https://schema.org/WebPage"') ?>>
    
        <?php do_action( '__before_page_wrapper' ); ?>
    
        <div id="tc-page-wrap" class="<?php echo implode( " ", apply_filters('tc_page_wrap_class', array() ) ) ?>">
    
      		<?php do_action( '__before_header' ); ?>
    
      	   	<header class="<?php echo implode( " ", apply_filters('tc_header_classes', array('tc-header' ,'clearfix', 'row-fluid') ) ) ?>" role="banner">
      			<?php
      				// The '__header' hook is used with the following callback functions (ordered by priorities) :
      				//CZR_header_main::$instance->tc_logo_title_display(), CZR_header_main::$instance->czr_fn_tagline_display(), CZR_header_main::$instance->czr_fn_navbar_display()
      				do_action( '__header' );
      			?>
      		</header>
      		<?php
      		 	//This hook is used for the slider : CZR_slider::$instance->czr_fn_slider_display()
      			do_action ( '__after_header' )
      		?>
    Plugin Author Thomas Maier

    (@webzunft)

    It’s hard to tell, but if the <header> part is actually visible in your theme then this should work.

    I would need to see the site in action and the manipulated version of the header.php in order to say more.

    You can reach out directly through https://wpadvancedads.com/support for this.

    Thanks
    Thomas

    Thread Starter kitcarguy

    (@kitcarguy)

    Hey there. After a bit more messing around with it I think I got it all figured out. Well I cant quite get it to show in the header but it is in a location I can live with .

    Thanks for all of your help . This is a great plugin!

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for your kind feedback. I am happy to read that it works now.

    Thomas

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Customizr Pro and ad location’ is closed to new replies.