MesoColumnVersion: 1.6.5.1
you know the theme did not support < script > code by default right? need to use shortcoder or check author theme page on how to disable script restriction.
huh, didn’t knew that/. But how it is working in sidebar and single post page?
is it the same script code or html ad? did you use the customizer->advertisement for the sidebar and single post? it shouldn’t work if you add the script code there.
You are in right. I was using customizer for the code that is not working. Other two places that are working are added in regular widget sidebar and in single page html.
Do you maybe know where in editor I should add code that I want to be shown at the top ?
thank you very much
add the code in faq.txt #11 to functions.php bottom before end ?>
function meso_allow_scripts() { return 'meso_sanitize_null'; }
add_filter('meso_textarea_settings_filter','meso_allow_scripts');
re-enter your script code in customizer and saved.
Can you please check print screen below? Is code added properly? B ecause ad is still not showing. (I’ve pasted code from the first message above)
http://s5.postimg.org/6cdhrhlmf/functions.png
try add 20 to filter like this
add_filter(‘meso_textarea_settings_filter’,’meso_allow_scripts’, 20);
refresh site and re-enter the script code. although not sure if wp text field core will pass the code with html comment, try this instead.
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="center"><script type='text/javascript'>OA_show(3);</script><noscript><img border='0' alt='' src='http://www.dentalpartner.rs/korisnici/www/delivery/avw.php?zoneid=3&n=c377288' /></noscript></div></td>
</tr></table>
I did what you told me, but still , there is nothing showing.
s there a way to insert that code somewhwere in file instead in customizer? that worked for other ad zones
remove the code in customizer->advertisement->location->top header and add this to functions.php
function meso_add_custom_topheader_ads() { ?>
<div id="topbanner">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="center"><script type='text/javascript'>OA_show(3);</script><noscript><img border='0' alt='' src='http://www.dentalpartner.rs/korisnici/www/delivery/avw.php?zoneid=3&n=c377288' /></noscript></div></td>
</tr></table>
</div>
<?php }
add_action('bp_inside_header','meso_add_custom_topheader_ads');
thank you so much. working now !!!