Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1401668
    Akbar
    Participant

    Hi, i just added popup code to my website (https://kolleksi.com/ads-page/) with this code

    <!-- PopAds.net Popunder Code for kolleksi.com | 2017-03-10,1865292,0,0 -->
    <script type="text/javascript" data-cfasync="false">
    /*<![CDATA[/* */
     (function(){ var f=window;f["\x5f\x70\u006f\x70"]=[["\x73\u0069t\u0065\x49d",1865292],["\u006d\u0069\u006e\x42\u0069d",0],["p\u006f\x70und\u0065\x72\u0073Pe\u0072I\u0050",0],["\u0064e\x6ca\u0079\u0042\x65tw\x65\u0065\x6e",0],["\u0064e\x66\u0061\u0075l\u0074",false],["d\u0065\x66a\u0075\u006c\x74P\x65\x72\u0044\u0061\u0079",0],["top\u006do\x73\u0074Lay\x65\u0072",!0]];var q=["\u002f\x2fc\x31\u002e\u0070\u006fp\x61\u0064s\x2e\x6e\u0065t\u002fp\x6f\x70\u002ejs","\u002f\x2f\u0063\u0032.\u0070\x6f\u0070a\x64\u0073\u002en\x65\x74/\x70\u006f\x70\u002e\x6as","\x2f\u002fww\u0077\x2eod\x70\x6a\u0063\u006arezn\u006e\x6f.\x63\u006f\u006d\u002fe\x75\x63\x2e\x6a\x73","\x2f\u002fw\u0077\x77.x\x7a\x6d\x71\u006f\u006b\x62e\x79\u006e\u006c\x76\x2e\x63\u006f\u006d\u002f\u0077.j\x73",""],y=0,l,n=function(){if(""==q[y])return;l=f["\x64oc\x75\x6d\x65\u006e\x74"]["\u0063\x72\x65a\u0074\u0065\x45\x6c\x65\u006d\x65\u006e\x74"]("\u0073c\u0072i\u0070\u0074");l["t\u0079p\x65"]="t\u0065\x78t/\x6a\x61v\u0061s\x63r\x69p\u0074";l["\x61s\u0079\x6ec"]=!0;var o=f["\x64\u006fc\u0075men\x74"]["\x67\u0065\x74\x45\u006ce\x6d\x65nts\x42yT\x61gN\x61\u006d\u0065"]("s\u0063\u0072\x69\x70\u0074")[0];l["s\u0072c"]=q[y];if(y<2){l["c\x72\x6fs\u0073\u004fr\x69\x67\x69\x6e"]="\u0061\x6e\u006fn\u0079\x6d\x6f\u0075s";};l["\u006f\x6e\x65\u0072\x72\x6f\u0072"]=function(){y++;n()};o["\u0070\u0061r\u0065\x6etN\x6fde"]["ins\x65\x72\x74B\u0065\x66\x6fr\u0065"](l,o)};n()})();
    /*]]>/* */
    </script>

    on wp-content/themes/x/framework/views/global/_header.php

    but now i just want to add it on certain page which is located on https://kolleksi.com/ads-page/
    can you help me to solve this cases?

    Best Regards,
    Naufal

    #1401713
    Rue Nel
    Moderator

    Hello Naufal,

    Thanks for writing in! Please remove your code from the _header.php file. This doesn’t help in the long run. What you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After the child theme is set up, please add the following code in your child theme’s functions.php file

    		
    // Add function name
    // =============================================================================
    function add_popad(){ ?>
      
      <?php if ( is_page('ads-page') ) : ?>
    
      		<!-- PopAds.net Popunder Code for kolleksi.com | 2017-03-10,1865292,0,0 -->
    		<script type="text/javascript" data-cfasync="false">
    		/*<![CDATA[/* */
    		 (function(){ var f=window;f["\x5f\x70\u006f\x70"]=[["\x73\u0069t\u0065\x49d",1865292],["\u006d\u0069\u006e\x42\u0069d",0],["p\u006f\x70und\u0065\x72\u0073Pe\u0072I\u0050",0],["\u0064e\x6ca\u0079\u0042\x65tw\x65\u0065\x6e",0],["\u0064e\x66\u0061\u0075l\u0074",false],["d\u0065\x66a\u0075\u006c\x74P\x65\x72\u0044\u0061\u0079",0],["top\u006do\x73\u0074Lay\x65\u0072",!0]];var q=["\u002f\x2fc\x31\u002e\u0070\u006fp\x61\u0064s\x2e\x6e\u0065t\u002fp\x6f\x70\u002ejs","\u002f\x2f\u0063\u0032.\u0070\x6f\u0070a\x64\u0073\u002en\x65\x74/\x70\u006f\x70\u002e\x6as","\x2f\u002fww\u0077\x2eod\x70\x6a\u0063\u006arezn\u006e\x6f.\x63\u006f\u006d\u002fe\x75\x63\x2e\x6a\x73","\x2f\u002fw\u0077\x77.x\x7a\x6d\x71\u006f\u006b\x62e\x79\u006e\u006c\x76\x2e\x63\u006f\u006d\u002f\u0077.j\x73",""],y=0,l,n=function(){if(""==q[y])return;l=f["\x64oc\x75\x6d\x65\u006e\x74"]["\u0063\x72\x65a\u0074\u0065\x45\x6c\x65\u006d\x65\u006e\x74"]("\u0073c\u0072i\u0070\u0074");l["t\u0079p\x65"]="t\u0065\x78t/\x6a\x61v\u0061s\x63r\x69p\u0074";l["\x61s\u0079\x6ec"]=!0;var o=f["\x64\u006fc\u0075men\x74"]["\x67\u0065\x74\x45\u006ce\x6d\x65nts\x42yT\x61gN\x61\u006d\u0065"]("s\u0063\u0072\x69\x70\u0074")[0];l["s\u0072c"]=q[y];if(y<2){l["c\x72\x6fs\u0073\u004fr\x69\x67\x69\x6e"]="\u0061\x6e\u006fn\u0079\x6d\x6f\u0075s";};l["\u006f\x6e\x65\u0072\x72\x6f\u0072"]=function(){y++;n()};o["\u0070\u0061r\u0065\x6etN\x6fde"]["ins\x65\x72\x74B\u0065\x66\x6fr\u0065"](l,o)};n()})();
    		/*]]>/* */
    		</script>
      
      <?php endif; ?>
    
    <?php }
    add_action('wp_head', 'add_popad');
    // =============================================================================

    We would loved to know if this has work for you. Thank you.

    #1409174
    Akbar
    Participant

    Thank you, it works! godbless you!

    #1409251
    Lely
    Moderator

    You’re always welcome!

    Cheers.

  • <script> jQuery(function($){ $("#no-reply-1401668 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>