Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1309069
    SeLoRe
    Participant

    Hi,

    When I put ad codes to my website homepage is breaking down. Also it is normal with http but when I use https I have this problem. I tried this ad code with another theme it worked wihout any problem. My website is https://www.agullek.com

    If you want see ad code below

    <script type="text/javascript">
    /* VRTZ JS   250 x 250 pagead  DO NOT MODIFY  */
    document.write('<s'+'cript src="//banner.vrtzads.com/scripts/pageads.js?vzId=VZC859230V78BB25&vzR='+Math.floor(Math.random()*100*(new Date().getTime()/1000))+'"></s'+'cript>');
    </script>
    #1309473
    Paul R
    Moderator

    Hi,

    May I know where exactly you have added this code?

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1309553
    SeLoRe
    Participant
    This reply has been marked as private.
    #1309660
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! The issue occurred because of this function in your child theme:

    //Making jQuery to load from Google Library
    function replace_jquery() {
    	if (!is_admin()) {
    		// comment out the next two lines to load the local copy of jQuery
    		wp_deregister_script('jquery');
    		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2');
    		wp_enqueue_script('jquery');
    	}
    }
    add_action('init', 'replace_jquery');

    The jQuery version loaded in the latest WordPress versions is 1.12.4. Modifying the jQuery created the issue. It may also create further issues affecting core WordPress in your site. Please remove that code.

    Hope this helps. Please let us know how it goes.

    #1309734
    SeLoRe
    Participant
    This reply has been marked as private.
    #1309770
    Paul R
    Moderator

    Hi,

    I can see you have cache plugin and cloudflare installed.

    Try to clear plugin cache and check again.

    https://support.cloudflare.com/hc/en-us/articles/200169246-How-do-I-purge-my-cache-

    Thanks

    #1309903
    SeLoRe
    Participant

    I cleaned cache both of them also I disabled cloudflare completely and I disabled all plugins except cornerstone but still not working 🙁

    #1310227
    Rad
    Moderator

    Hi there,

    Hmm, how do I log in to your site? All login URL returns 404.

    And what issue your site is still having? I don’t see javascript error and Ads are displaying okay. Please provide some screenshots of the issues.

    Thanks!

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