Top banner

Home Forums Gillion Theme Top banner

Home Forums Gillion Theme Top banner

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • Igor
    Participant

    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

     

    Attachments:
    You must be logged in to view attached files.

    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

    Igor
    Participant

    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

     

     

    Attachments:
    You must be logged in to view attached files.

    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.”?

    Igor
    Participant

    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?

    Igor
    Participant

    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.

    Igor
    Participant
    • Yes, but it is displayed beneath the logo in mobile version. 🙁 It should be above the logo. Is it possible?

    Yes it is possible and I did it.

    Igor
    Participant

    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

Viewing 12 posts - 1 through 12 (of 12 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form