WP SITES
144 FOLLOWERS
The largest range of tutorials with code for modifying StudioPress child themes, Genesis & WordPress. WP SITES includes over 2100 tutorials PLUS 4000 code snippets written specifically for use in different Genesis child themes. Follow this blog to know more about Genesis wordpress themes.
WP SITES
2d ago
To use worldwide shipping when using multiple zones, you need to add the worldwide shipping method to each zone. In this example, we have 3 zones : We want to add a shipping method which is available for customers globally ( world wide ) so we need to add exactly the same shipping method to ..read more
WP SITES
2d ago
This code enables you to conditionally display shipping methods by ID based on cart totals. In this case we set 150 as the total. If the cart total is less than 150, shipping method ID 5 displays otherwise shipping method ID 7 displays for orders above 150. Swap out the method IDs to match your ..read more
WP SITES
1w ago
These code snippets enable you to add custom fields to the user registration form on the My Account page. Custom fields include : The code goes at the end of your child themes functions file. Here’s the code : Here’s some sample CSS you might need depending on your theme ..read more
WP SITES
1w ago
This code changes the button text for 1 bookable product while the others use different button text. Swap out the ID in the code to match the bookable product you ant to target. Swap out the Book Appointment and Rent Now text to your own requirements. Copy and paste the code to the end of ..read more
WP SITES
1w ago
This PHP codes creates 3 custom fields for single products. This enables you to add unique content for each simple product. The content outputs on the frontend using the woocommerce_single_product_summary single product page hook. Add the code to the end of your child themes functions file using FTP and a code editor ..read more
WP SITES
1w ago
By default, WC displays the sale price inline with the regular price as you can see in the image on the left. This code repositions the sale price below the regular price on both variable and simple products. Using a code editor and FTP, paste the code at the end of your child themes functions ..read more
WP SITES
1w ago
This code adds a custom body class when using the WooCommerce checkout page block based on the payment method toggled. In this example, we add a custom body class named payment-cod-cheque-active when either Check payments or Cash on delivery payment methods are chosen. Code Installation There’s 2 steps : 1. Add the following PHP code ..read more
WP SITES
1w ago
The tested SQL queries in this post enable you to delete WordPress users with the customer role who have no orders. WARNING : Before you start SQL queries, create a backup of your database. Before you delete the users, run a SELECT query first. You can check the number of users against the number in ..read more
WP SITES
2w ago
This code enables you to include addons on single products for anything like warranty, premium support or any type of upgrade. Once your customer selects the addon, the single product price is updated to include the price of the addon. In this case, the addon price is a percentage of the single product price. The ..read more
WP SITES
2w ago
Once you find malicious I.P addresses like this one, 2.38.137.232, you can easily use the I.P Deny tool in My Kinsta to block them. To find the I.P addresses you want blocked, you can use the Jetpack activity log. Then all you need to do is go to My Kinsta > WordPress Sites > Your ..read more