[Resolved] leader board ad 728*90 on desktop at top and on mobile.

Home Forums Support [Resolved] leader board ad 728*90 on desktop at top and on mobile.

Home Forums Support leader board ad 728*90 on desktop at top and on mobile.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #2341527
    surendra1506

    Hi team I want to create an ad unit on top of the site. The logo to the left side and the 728*90 ad is on the right side.

    The menu will be below them.

    Also, I want it to show only on the desktop. For mobile, I want to display a 300*50 ad on top.

    Thanks in advance.

    Surendra Jadli

    #2341553
    David
    Staff
    Customer Support

    Hi there,

    1. set the Customizer > Layout > Primary navigation -> Location to Below Header

    2. Create a Hook Element to add your Banners:

    https://docs.generatepress.com/article/hooks-element-overview/

    2.1 This hook can contain both banners simply use a DIV and a CSS class to hide the relevant banners eg.

    
    <div class="hide-on-tablet hide-on-mobile">
    You desktop banner here
    </div>
    <div class="hide-on-desktop">
    You mobile banner here
    </div>

    2.2 Set the Hook to: generate_after_logo

    2,3 Set the Display Rules to the Entire Site

    #2341584
    surendra1506

    1. set the Customizer > Layout > Primary navigation -> Location to Below Header

    Hi David, I can’t see this option in my customizer. Please help

    Surendra Jadli

    #2341616
    David
    Staff
    Customer Support

    OK, go to Customizer > Layout > Header and Disable the Navigation as Header option.
    Then set the Customizer > Layout > Primary navigation -> Location to Below Header

    #2341851
    surendra1506

    Thanks, David,

    I got the desired result by implementing as you instructed.

    one last thing I request you to please tell me how to get the ads to the right side.

    Currently, it is too close to the site logo.

    Surendra Jadli

    #2341856
    David
    Staff
    Customer Support

    Try adding this CSS:

    .site-logo {
        margin-right: auto;
    }
    #2341881
    surendra1506

    Thank you so much David.

    My all problems are now resolved.

    Thanks a lot for the quick reply and rectification.

    Surendra Jadli

    #2341882
    surendra1506

    Thanks again

    Surendra Jadli

    #2341884
    David
    Staff
    Customer Support
    #2342342
    surendra1506

    Hi David,

    For Mobile view my site logo is coming above followed by primary navigation below it.

    I want to keep site logo within primary navigation at the center and search icon to right.

    please help me to achieve this.

    Surendra Jadli

    #2342378
    Fernando
    Customer Support

    Hi Surendra,

    Can you share the link to the site in question?

    You may use the Private Information field for this: https://docs.generatepress.com/?s=private+information

    #2342392
    surendra1506

    classmate4u.com

    Surendra Jadli

    #2342400
    Fernando
    Customer Support

    In Appearance > Customize > Layout > Header, can you first set the Mobile Header on, and add a logo. Once you’ve done that, let us know.

    #2342499
    surendra1506

    Hi Fernando,

    I am done with as you instructed.

    Surendra Jadli

    #2342602
    David
    Staff
    Customer Support

    Try adding this CSS:

    @media (max-width: 768px) {
        #mobile-header .menu-toggle {
            order: -1;
            margin-right: auto
        }
        .menu-bar-items {
            margin-left: 39px;
        }
    }
Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.