Hi
I Need to add some ad-Banners via php and am looking for the best php-files to do this for the following positions:
above top-menu
below main-menu
outside the boxed Content area
Thanks from Germany
Hansjörg
Hello Hansjörg Leichsenring,
Using the default settings from Theme panel, notice that you can add the banners above the top-menu and below it but the theme does not have any such an option that allows you to add something like this outside the boxed Content Area. Please check the Theme panel settings from here -> https://forum.tagdiv.com/header-ads-adsense/
Thanks for the message!
Hi Catalin
I want to add a banner not in the Header section but on top of the site.
I know, that there is no Option within the theme, therefore I am asking for the optimal
php file(s), where I had to place the ad code.
Cheers
Hansjörg
Hello Hansjörg,
If you want to add a banner ad at the top of your site, you should edit the header.php core files and there you should use the do_shortcode method to add the banner you want. Please refer to this topic here -> https://forum.tagdiv.com/topic/how-can-i-put-ads-between-post-title-and-social-share-button/ -> here is a simple example.
Thanks for the message!
Hi Catalin
I find the Solutions for Banners above top-menu and outside the boxed Content area in Header.php.
But now I Need to know, which php-file I Need to Change for placing a banner direxctly below themain-menu. Please give advice.
Cheers
Hansjörg
Hello Hansjörg,
You should edit and add your shortcode ad here -> https://www.screencast.com/t/2TtNktbfb7uv It’s just a simple example.
Thanks.
Hi Catalin
Thanks, but that does not work to Show the ad under the main menu.
Could you please check?
Cheers
Hansjörg
Hello,
The most simples way, in this case, is to use the header style 6 because this is the easy way to achieve as you wish as you can see here -> https://www.screencast.com/t/H35si9zC Otherwise, if you are not aware of the all steps which are needed to take in this case, and if you want to add some code in PHP, please consider hiring a freelancer/developer to help you because we cannot provide support for untested plugins.
Thanks.
Hi Catalin
thansk, but I would like to Keep my Header style as it is. I cannot see, the Advantage of style 6 to realize my Goal.
But there must be one php-file which provides the Position of the menu. So it should not be that complcated to add there one line of code.
Please tell me, which file it is
Cheers
Hansjörg
Hello Hansjörg Leichsenring,
If you want to create your own header style, please check you should edit the header folder files from here -> https://www.screencast.com/t/3XgvcSBvx If you are not aware of the steps which are needed to take, in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thanks for the message!
Thanks a lot Catalin
That was exactly what I was looking for!