Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1176085
    Rin
    Participant
    This reply has been marked as private.
    #1176264
    Rue Nel
    Moderator

    Hello There,

    I have updated the JS code. In fact the actual code now in your _footer.php is this:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_FOOTER.PHP
    // -----------------------------------------------------------------------------
    // Includes the wp_footer() hook and closes out the <body> and <html> tags.
    // =============================================================================
    
    ?>
    
      <?php do_action( 'x_before_site_end' ); ?>
      
      <a href="http://www.huiji.com.sg/cart/" class="go-to-cart" title="Go to Cart"><i class="x-icon x-icon-shopping-cart"></i></a>
      <script>
      // modified by X Staff
      (function($)){
       $(document).ready(function(){
    
    	// hide #back-top first
    	$(".go-to-cart").hide();
    	
    	// fade in #back-top
    	$(function () {
    		$(window).scroll(function () {
    			if ($(this).scrollTop() > 100) {
    				$('.go-to-cart').fadeIn();
    			} else {
    				$('.go-to-cart').fadeOut();
    			}
    		});
    	});
       });
      })(jQuery);
      </script>
    
      </div> <!-- END #top.site -->
    
      <?php do_action( 'x_after_site_end' ); ?>
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    This changes will not take effect because you have a caching plugin. I would suggest that you clear your plugin cache first and test your site again. I intentionally add a line // modified by X Staff so that we can see if it reflects on the page on not. And if it does not, it could be because of the caching plugin.

    Please let us know how it goes.

    #1178400
    Rin
    Participant

    Hi there,
    I’ve cleared it through the cache plugin and also downloaded another plugin called
    Clear Cache For Me that’s suppose to clear everything. It didn’t seem to work since the additional line didn’t show up. Is there a way for me to manually clear the cache? I’m not familiar with how to do so manually through the FTP for wordpres/

    #1178994
    Rue Nel
    Moderator

    Hello There,

    My changes were still not reflected in your site. Could you please disable of your caching plugin first? I have tried to logged in to your WordPress but it requires Google authenticator. Please provide us the login credentials so that we can check again your WordPress dashboard.

    Thank you.

    #1180191
    Rin
    Participant
    This reply has been marked as private.
    #1180528
    Rad
    Moderator

    Hi there,

    I went ahead and fix it. Would you allow me to disable all the caching? It’s deeply integrated to your files and setting, disabling it through admin won’t be enough. And allow me to disable Wordfence too.

    My guess is it’s object caching, but I can’t confirm any of it if there are active caches.

    And please back up your site, this process may affect your live site. Or, you may clone your site to staging where we can mess it 🙂

    Thanks!

    #1181628
    Rin
    Participant

    Hi Rad,
    Thanks for the heads up on backing up. I’ll let you know once the site has been cloned and staged – i’ve tried to clone it with BackupBuddy plugin but was having issues with it too (!) so have reached out to them in order to have this backup.

    #1181633
    Joao
    Moderator

    Let us know how it goes,

    Joao

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