How To Sync Posts Between Sites

sync-posts-between-sites

When you are doing a WordPress development on a staging site together with a live site, frequently you will encounter the situations when you just want to move a couple of blog posts, for example, from staging to live, without re-migrating the whole site.

Read More →

Sync Posts Between Sites

sync-posts-between-sites

Sync Posts Between Sites is a WordPress plugin that will help you in situations when you just want to move a couple of blog posts.

Read More →

Most Successful Shopify Dropshipping Websites

dropshipping-websites

If you’re seeking for helpful insights into the most successful Shopify stores, as well as the secrets that have contributed to their success, you’ve come to the right spot!

Read More →

Best WordPress Plugins for Summer 2022

cryptopay-woocommerce-cryptocurrency-payment-gateway-plugin

In this summary, you’ll find 12 fresh and best WordPress plugins that the market has to offer for this Summer. We tell you what is so amazing about them and why they are essential.

Read More →

Best WordPress Themes for Summer 2022

homlisti

We have selected the Best Fresh WordPress Themes for Summer 2022 to help you find the right for your site.

Read More →

Best WordPress Hosting for Summer 2022

In this article, we’ll take a deep look at the top 7 WordPress hosting providers for Summer 2022, a list we’ve narrowed down from over 50 various hosting services we’ve tested.

Read More →

Best Restaurant Themes for Summer 2022

nourish

Are you looking for the best fresh WordPress restaurant themes for a fine dining place, pizzeria, or cafeteria? You’re at the right place!

Read More →

Nourish – Clean Restaurant Theme

nourish

This is the clean restaurant theme that allows you to show off just about any aspect of your restaurant business.

Read More →

BuddyPress Chat

buddypress-chat-plugin

BuddyPress Chat is a realtime private messaging system for WordPress, BuddyPress, BuddyBoss Platform and any other WordPress powered websites.

Read More →

Nimble guide to WordPress speed optimization

WordPress Speed Optimization

In this nimble WordPress speed optimization guide you will find out what impacts the websites loading time and how to make it blistering fast.

Read More →

wc_clean – WooCommerce Core Function

The following useful function is found in the includes/wc-core-functions.php and can be used by themes and plugins. Trims and strips tags from a string ($var). wc_clean( $var )

Read More →

Disable the default stylesheet in WooCommerce

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. Disable all stylesheets WooCommerce enqueues 3 […]

Read More →

Change the default state and country on the checkout in WooCommerce

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. /** * Change the default state […]

Read More →

Add a custom currency symbol in WooCommerce

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. /** * Custom currency and currency […]

Read More →

Disable Everything

Disable Everything

WordPress and some of the most popular plugins had become increasingly bloated over time with loads of unnecessary features. This plugin is meant to fix that!

Read More →

Retrieving a customer in WooCommerce

$customer = new WC_Customer( $user_id ); $email = $customer->get_email(); $address = $customer->get_billing_address(); $name = $customer->get_first_name() . ' ' . $customer->get_last_name();

Read More →

Exclude products from a particular category on the shop page in WooCommerce

As ‘clothing’ is an example in the snippet below, be sure to use a product category slug that exists in your WooCommerce store. Note that this will only work when you have your “Shop Page Display” option set to ‘Show Products’ under your Customizers’ WooCommerce > Product catalog settings. Add this code to your child […]

Read More →

WooCommerce payment gateway plugin base

This code can be used as a base to create your own simple custom payment gateway for WooCommerce. Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php […]

Read More →

Adding a Custom Special Field in WooCommerce

Let’s add a new field to checkout, after the order notes, by hooking into the following. /** * Add the field to the checkout */ add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' ); function my_custom_checkout_field( $checkout ) { echo '<div id="my_custom_checkout_field"><h2>' . __('My Field') . '</h2>'; woocommerce_form_field( 'my_field_name', array( 'type' => 'text', 'class' => array('my-field-class form-row-wide'), 'label' => __('Fill […]

Read More →

Make phone number not required in WooCommerce

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 ); […]

Read More →

Show product categories in WooCommerce breadcrumbs

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. /** * Show product categories in […]

Read More →

Declaring WooCommerce Support

function mytheme_add_woocommerce_support() { add_theme_support( 'woocommerce' ); } add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );

Read More →

Hide loop read more buttons for out of stock items in WooCommerce

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. /** * Hide loop read more […]

Read More →

wc_get_weight – WooCommerce Core Function

The following useful function is found in the includes/wc-core-functions.php and can be used by themes and plugins. Takes a weight ($weight) weighed in WooCommerce’s weight unit and converts it to the target weight unit ($to_unit). wc_get_weight( 10, 'lbs' )

Read More →

Customize the WooCommerce breadcrumb

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. Useful if you want to change […]

Read More →

Register the taxonomy for menus in WooCommerce

When registering taxonomies for your custom attributes, WooCommerce calls the following hook: $show_in_nav_menus = apply_filters('woocommerce_attribute_show_in_nav_menus', false, $name); So, for example, if your attribute slug was ‘size’ you would do the following to register it for menus: add_filter('woocommerce_attribute_show_in_nav_menus', 'wc_reg_for_menus', 1, 2); function wc_reg_for_menus( $register, $name = '' ) { if ( $name == 'pa_size' ) $register […]

Read More →

Add a cookie compliance banner in Shopify

Cookie HTML banner saved as snippet in snippets/cookie-banner.liquid : <style> #cookies-banner { display: none; justify-content: center; align-items: center; padding: 1em; position: fixed; bottom: 0px; width: 100%; background: #fff; border-top: 1px solid #dcdcdc; } </style> <div id="cookies-banner"> <span>This website uses cookies to ensure you get the best experience on our website.</span> <button style="margin-left: 1em;" onclick="handleDecline()">Decline</button> <button […]

Read More →

Check if both the billing and the shipping address contain a house number in WooCommerce

Currently, when using the Checkout block from the WooCommerce Blocks plugin, there’s no check if the billing or shipping address field contains a house number. The following code snippets allow to check if these fields contain a number. To check if both the billing and the shipping address contain a house number, please use the […]

Read More →

Unhook the WooCommerce wrappers

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Dessky Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be overwritten completely when you update the theme. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_after_main_content', […]

Read More →

Example products loop in WooCommerce

<ul class="products"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 12 ); $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { while ( $loop->have_posts() ) : $loop->the_post(); wc_get_template_part( 'content', 'product' ); endwhile; } else { echo __( 'No products found' ); } wp_reset_postdata(); ?> </ul><!–/.products–>

Read More →
storniolo.francina@mailxu.com