Iframe as Adsense
I have Graphene as my WordPress theme since a few months. I like the theme very much. But now I have little question about it.
By ‘Adsense’ I wanna use iframe for to show a little script who shows every time another picture as ad. But when I save it, it goes away and the field is blank. When I place for instance
<img src="ad"</img>it keeps.
Can anybody help me with this problem?
Thanks in advance,
That’s because the option field for the adsense code filters out disallowed tags, which include
<iframe>. (It uses the
wp_kses_post()function if you’re interested to know more).
See this tutorial for pointers on how you can add
<iframe>to the list of allowed tags:
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.