Responsive Ad Questions
-
I have a some questions regarding placing Google’s new responsive adsense ad on my site.
Google states, “If you place your responsive ad code within a parent container that doesn’t have an explicit width set, for example, within a floating element, then our ad code won’t be able to calculate the required size for the responsive ad unit.” (src: https://support.google.com/adsense/answer/3213689?hl=en)
I want to place the ad above the post title so I used the following code in my child theme’s functions.php file: https://gist.github.com/anonymous/98106299383e03d0c908
However, the ad doesn’t display (cf. https://www.johnrothra.com/nine-factors-hinder-evangelism-rainers-seven-plus-two/).
First question: Does the main body section above the title not meet the size statement requirements listed by Google?
Second question: Did I do the coding correct in the fuctions.php file?
Third question: Did I use the correct action hook (I found it in the class-content-headings.php file.
- The topic ‘Responsive Ad Questions’ is closed to new replies.