Hide sidebar on mobile device
function custom_hide_sidebar_on_mobile() { echo ' '; } add_action('wp_head', 'custom_hide_sidebar_on_mobile');
Elementor - Fix the Accordion SEO issue
add_filter( 'elementor/widget/render_content', function ( $widget_content, $widget ) { if ( 'accordion' === $widget->get_name() ) { $widget_content…
Remove Gutenberg Blocks CSS
add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…
Change a currency symbol AMD to Դրամ
/** * Change a currency symbol */ add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2); function change_existing_currency_symbol( $currency_symbol, $currency )…
Hide Price & Add to Cart for Non Logged in Users for Specific Products
This code snippet allows you to hide the price and 'Add to Cart' button for users…
Leave Tasty recipe ratings with WP-PostRatings
The Tasty Recipes rating system works with the default WordPress comment form. However, if you use…
Remove address from the header
Remove address block from the header
Lazy load YouTube videos in WordPress with Shortcode
Lazy load YouTube videos in WordPress with Shortcode
Rich Pins
Rich Pins on Pinterest
Google Tag Fitting
Google Tag manager snippet to track
Change Jump links to buttons
Make the "jump to recipe" and "print recipe" links look like buttons at the top of…
Keep Emoticons
WordPress converts all emoticons to emoji. This small snippet prevents that, without removing emojis from your…
Event Snippet (Schedule Fitting)
Event snipping is used to track Google ads booking conversions
Move Jump to Recipe above featured image
/** * Ensures the "Jump to Recipe" button is added to the content really late. */…
Disable Pages and Post from Appearing in Wordpress Search Results
Using WPCode, apply the following code snippet to effectively disable certain pages from appearing in the…