• Resolved fdestiny

    (@fdestiny)


    Hello: I am using revive ad server to serve banners. I’ve added code without problems in sidebar and single post and theme is whoing banner,just like it should.

    But,when I server code in the place for top header (advertisement location settings in customizer), theme simply won’t show that ad space.

    this is code I am using:

    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
    <tr>
    <td><div align=”center”><script type=’text/javascript’><!–// <![CDATA[
    /* [id3] Zona 0 – top */
    OA_show(3);
    // ]]> –></script><noscript><img border=’0′ alt=” src=’https://www.dentalpartner.rs/korisnici/www/delivery/avw.php?zoneid=3&n=c377288&#8242; /></noscript></div></td>
    </tr>
    </table>

Viewing 13 replies - 1 through 13 (of 13 total)
  • Theme Author Richie KS

    (@rkcorp)

    theme version?

    Thread Starter fdestiny

    (@fdestiny)

    MesoColumnVersion: 1.6.5.1

    Theme Author Richie KS

    (@rkcorp)

    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.

    Thread Starter fdestiny

    (@fdestiny)

    huh, didn’t knew that/. But how it is working in sidebar and single post page?

    Theme Author Richie KS

    (@rkcorp)

    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.

    Thread Starter fdestiny

    (@fdestiny)

    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

    Theme Author Richie KS

    (@rkcorp)

    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.

    Thread Starter fdestiny

    (@fdestiny)

    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)

    https://s5.postimg.org/6cdhrhlmf/functions.png

    Theme Author Richie KS

    (@rkcorp)

    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='https://www.dentalpartner.rs/korisnici/www/delivery/avw.php?zoneid=3&n=c377288' /></noscript></div></td>
    </tr></table>
    Thread Starter fdestiny

    (@fdestiny)

    I did what you told me, but still , there is nothing showing.

    Thread Starter fdestiny

    (@fdestiny)

    s there a way to insert that code somewhwere in file instead in customizer? that worked for other ad zones

    Theme Author Richie KS

    (@rkcorp)

    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='https://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');
    Thread Starter fdestiny

    (@fdestiny)

    thank you so much. working now !!!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Advertising code’ is closed to new replies.