Home › Forums › Gillion Theme › Top banner
Home › Forums › Gillion Theme › Top banner
Hi,
is it somehow possible to insert ad banner between header bar and field with logo and menu?
I have put it through header.php between:
get_template_part(‘inc/templates/notice’ ); ?>
and
<?php if( gillion_post_option( gillion_page_id(), ‘header’, ‘on’ ) != ‘off’ ) : >
Please, take a look at the screenshot from attachment.
Site is: http://www.gradnja.rs
Best,
Igor
Hi Igor,
I hope you are well today and thank you for your question.
To achieve this, you have to add it in the theme header.php file between the following lines of code where i have written ‘Add here top banner’.
<?php /* Include desktop header */ get_template_part('inc/headers/header-topbar' ); echo 'Add here top banner'; get_template_part('inc/headers/header-'.gillion_header_layout() ); ?>
Best regards,
Shufflehound team
Thanks, but something is not right.
I get scrambled results as you can see in attachment.
As I can see in your code you don’t have this line like I have in header.php:
get_template_part('inc/headers/header-topbar' );
I tried deleting it but then there is no topbar.
Maybe there is a problem with my ad code? Here it is:
<div style="max-width:960px; margin:20px auto;"> </div>
Best,
Igor
I don’t see your shared code so could you please share me your whole modified header.php file?
Also Would you mind if i log in to your site and do some troubleshooting? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will be able see it.”?
Sure, here it is:
I logged in to your site and added the banner code in the header.php file and also used following custom CSS code.
header.primary-desktop { height: auto !important; }
It displays fine now.
Could you please confirm it?
It displays fine now on deskop but it doesn’t show on mobile at all. 🙁
When can we do about it?
Thanks,
Igor
Now I have added it also in the mobile version of menu.
Yes it is possible and I did it.
Wow, thanks. It looks great!
When I want to remove the ad, I just need to remove ad code from header.php and that’s it, right?
Best,
Igor
When I want to remove the ad, I just need to remove ad code from header.php and that’s it, right?
Yes