Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    The reason the CSS rule has no effect in the child theme is because the AdSense ads are being loaded with an iframe. Basically this means that they’re in a separate HTML document that isn’t subject to the CSS rules that you specify within your theme.

    The CSS for the AdSense ads will have to be either be specified in a way that the original iframe source will load the CSS rules, or you’ll have to edit the contents of the iframe after the fact using one of several code injection techniques.

    I hope this is helpful.

    Cheers.

    Thread Starter viriato74

    (@jpbenfica)

    ok. Thank′s

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add code to Child-Theme?’ is closed to new replies.