Code Snippets
Replace Text That Loco Translate Can’t Reach
There are external elements like Mapbox, Google Maps, etc. that plugins like Loco Translate cannot reach and in those instances, this snippet can be used.
There are external elements like Mapbox, Google Maps, etc. that plugins like Loco Translate cannot reach and in those instances, this snippet can be used.
If you use WooCoomerce Subscriptions, it may append /day, /month, etc., to the price. This snippet uses the opacity setting to make that text transparent.
jQuery( document ).ready( function( $ ) { setInterval(function(){ if ($(“.widget_shopping_cart_content .woocommerce-mini-cart__empty-message”).length ) { $( ‘#user-cart-menu’ ).hide(); } else { $( ‘#user-cart-menu’ ).show(); } }, 10);
Exclusive resources, discounts, and expert services to help you build an online business with WordPress.