• losapuntesdelviajero

    (@losapuntesdelviajero)


    Hello! I’d like to know what the best way is to prevent ads from being displayed inside a div with the “box” class. Right now, I do it like this: div.box .quads-location {display: none}. This prevents the ad from being shown, but the code is still there, inside the .box, which causes problems with my CSS. Best regards!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, Can you please let us know the URL of that issue once if possible? Also which adsense ads you are displaying? So that we will analyze this scenario and assist you accordingly to solve it.

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hello! Thank you for the quick response. You can see an example of this type of box at this URL, with the text “Traslados aeropuerto Nueva York (tarifas orientativas)” as the title: https://losapuntesdelviajero.com/como-llegar-aeropuerto-nueva-york/

    I am displaying Google Adsense ads and I don’t want them to appear inside these boxes, whose class is “.shadow”. To do this, I use the CSS rule I mentioned. However, when looking at the source code, the WPQuads code is still there, and this causes small misalignments in the CSS, like an unwanted margin-bottom. What can I do?

    Best regards!

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, Sorry for the delay in response. Can you please let us know the misalignments and unwanted margin-bottom issues reference screenshots once, So that we will analyze all these scenarios and assist you ASAP to resolve the issue which you are facing.

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hi! What happens is that all the paragraphs in my blog have a margin-bottom of 1.5em. However, I want to avoid this margin-bottom inside my .shadow class boxes when it comes to the last paragraph. To do this, I have created the following CSS rule: .shadow > p:last-child {margin-bottom: 0;}. This works well when there are no ads inside the box. However, even though I am hiding your ads inside those boxes with the CSS rule .shadow .quads-location {display: none;}, there is still ad code and an empty paragraph.

    My CSS rule is being applied to that empty paragraph generated by your code and, therefore, the last paragraph with real content continues to apply a margin-bottom that I don’t want. Since I am displaying your ads every 4 paragraphs, it is impossible to control when a box will have ads and when it won’t.

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, Thank you so much for the detailed information. We will check these all scenario’s at our end and get back to you shortly to resolve the issue by analyzing it.

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Thanks! I’ll wait for your response. I’ll appreciate any help ??

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, Sorry for the delay in response. It seems now the ads are displaying outside of the .shadow class. Can you please let us know if have you made any changes?

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hello! As I mentioned, the ads are not showing within the “shadow” boxes because I am hiding them with CSS. The issue is that, even though they are not visible to the user, code is still being generated within those boxes, resulting in empty spaces. You can see examples of this in the boxes in this post: https://losapuntesdelviajero.com/como-llegar-aeropuerto-nueva-york/. The first of these boxes is titled “Traslados aeropuerto Nueva York (tarifas orientativas)”.

    Regards!

    Thread Starter losapuntesdelviajero

    (@losapuntesdelviajero)

    Hello! Any updates on this?

    Plugin Support WPQuads Support

    (@wpquadssupport)

    Hi, Sorry for the delay in response extremely. If possible kindly please go through the wpquads dashboard settings help & support tab.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Prevent ads in specific divs’ is closed to new replies.