How to put an ad in between header logo and nav bar?

I am using a plugin(Advanced Ads) to setup the ads on my website but I ran into a problem trying to get one on the top in between the logo and navbar. It has a shortcode feature so I assume I can just insert that in the proper spot but I have no idea where that is.

Hi There,

Thank you for writing in, but regretfully we cannot provide support for third-party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

Thank you for your understanding.

Does the plugin itself matter? What I need help with is knowing where a shortcode would go. It could be any kind of shortcode. If I were to rephrase the question to be - How do I put a shortcode between the header logo and nav bar could you help?

Hi @EricDF94,

You could check the link below on how to add an image or a code in your header.

I could not guarantee that it is the exact code however it could help you to achieve what you want to achieve.

Hope it helps.

Let us know how it goes.

Thanks.

That did it! Thanks! One last thing, is there a way to put a small margin on top of the ad to put a little space in between it and the nav bar? This is what it looks like right now

add_action( 'x_after_view_global__navbar', 'x_print_top_slider' );
function x_print_top_slider(){
	?>
<?php if(function_exists('the_ad_group')) the_ad_group(86); ?>
	<?php
}

Hi There,

You can add margin via custom CSS.
For example.
If the image banner container class is .my-custombanner the CSS should be.

.my-custombanner {
margin-top: 10px;  /* you can set the marign value here *?
}

The css should go to X->Theme option -> Global CSS

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.