• Resolved araderma

    (@araderma)


    Hi there
    I’va used this plugin to create image ads.
    I want to apply specific css styles on mobile version.
    on local host, I’ve added following codes:
    @media (max-width: 1199px){
    .banner-mob-set
    img:not(.lazy){
    object-fit: cover;
    object-position: 45% 0;
    width: 100%;
    height: 60px ;
    }}
    “banner-mob-set” is the css class i’ve specified to the banner.

    the problem is that the css code works on localhost but not on server.
    the css class “banner-mob-set” won’t be recognized. when I omit it from codes, the style will apply on all the images on page.
    could you please help me with that?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi araderma,

    I am happy to take a look.

    When I visit your website and look for banner-mob-set I only find the custom CSS, but no ad with this class.

    Where can I find one?

    Thanks,
    Thomas

    Thread Starter araderma

    (@araderma)

    thanks for your quick reply.

    actually that’s my problem too.
    banner-mob-set is specified to the banner in plugin, but won’t be recognized.

    Is it necessary to give my wordpress panel access?

    Regards
    Araderma

    Plugin Author Thomas Maier

    (@webzunft)

    Hi Araderma,

    > Is it necessary to give my wordpress panel access?

    No. Especially not here in the forum. When you are a customer of one of our add-on you get priority email support through this page and in some cases, a login could help, but as a general rule of thumb, you should not offer a login here on www.remarpro.com or agree to give one when someone else is asking.

    Where on your page can I find an ad?
    Are you using the exact same settings and placements on live and staging site?

    Thanks,
    Thomas

    Thread Starter araderma

    (@araderma)

    hi

    the ad is placed in the header (a pink narrow image on top of the page).

    yes, i’ve made no changes.

    thanks.

    Plugin Author Thomas Maier

    (@webzunft)

    Hi araderma,

    thank you, that makes sense now. If you used the “head” placement then all visible HTML is stripped, because that placement is not for visible ads, but for ad codes like the AdSense verification code. Adding visible elements there is breaking the HTML and could and will break the output in the browser.

    Please see https://wpadvancedads.com/place-ads-in-website-header/ for more information on how place an ad in the visible header of your site.

    Best regards,
    Thomas

    Thread Starter araderma

    (@araderma)

    hi
    now it’s perfectly working. It had given me a headache to find the solution!
    thank you for your excellent support.

    Best regards
    Araderma

    Plugin Author Thomas Maier

    (@webzunft)

    Hi Araderma,

    I am happy to read that it works.

    If you like Advanced Ads and our support then I would appreciate a positive review here.

    Thanks,
    Thomas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘css style not applying on server’ is closed to new replies.