0

I'm using the WooCommerce plugin to offer some products under myurl.tld/shop. I have managed to display the woocommerce CSS and JavaScript files only if a woocommerce page is shown.

The problem is that still some inner HTML JavaScript is shown in the footer area, which I can not remove. This JavaScript is displayed by the WooCommerce PayPal Checkout Gateway plugin:

...
<!-- WooCommerce JavaScript -->
<script type="text/javascript">
jQuery(function($) { 
jQuery( function( $ ) {
    var ppec_mark_fields      = '#woocommerce_ppec_paypal_title, #woocommerce_ppec_paypal_description';
...
});
</script>
</body>
</html>

Does somebody know how to remove this JavaScript and show it only on pages which belong to woocommerce?

0

If the JS code is coming from a plugin, then you need to talk to the plugin developers support people. It would seem that you would have to modify the plugin's code, which is not a good idea, since your changes would be overwritten when the plugin updates.

This is not a place for plugin support.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.