[Resolved] My header ad is not working

Home Forums Support [Resolved] My header ad is not working

Home Forums Support My header ad is not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1409391
    Nishant

    I am using generate press premium theme.
    I am using ad unit size 970 x 250 in the header but it is not showing properly. Half of the ad is not visible.
    Please look into the matter and help me to resolve it.

    #1409476
    David
    Staff
    Customer Support

    Hi there,

    the header widget is set to only fill 50% of the space available.
    You can change that with this CSS:

    .header-widget {
        max-width: 100%;
    }
    #1409678
    Nishant

    There is one more problem after implementing css code. The site title and tag comin in the same line with the advertisement. I want an advertisement below the title of site

    #1410086
    Tom
    Lead Developer
    Lead Developer

    It may be better to use the generate_after_header_content hook for your ad: https://docs.generatepress.com/article/hooks-element-overview/

    If you want to use the Header Widget, try adding this CSS:

    .inside-header {
        display: flex;
        flex-direction: column;
    }
    
    .header-widget {
        order: 10;
    }
    #1410417
    Nishant

    It is helpful but I have one more question. How can I hide the top bar widget in the desktop and show it on mobile? Please help

    #1410746
    David
    Staff
    Customer Support

    try this CSS:

    @media(min-width: 769px) {
        .top-bar {
            display: none;
        }
    }
    #1410772
    Nishant

    Thank you so much

    #1410892
    David
    Staff
    Customer Support

    You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.