October 2015

Add Webgains tracking code to WooCommerce

By |2015-10-26T09:53:27+00:00October 26th, 2015|Plugins, Snippits|

Include the following in your themes functions.php file. The Webgains container tag is included within the <head> of every page. And the Webgains tracking script with dynamic variables is included on the WooCommerce order confirmation [...]

March 2015

November 2014

September 2014

August 2014

Order WordPress Custom Post Type Lists by Column

By |2014-09-10T21:45:38+01:00August 22nd, 2014|Snippits|

By default, posts are sorted by the date published. Paste the code below into your theme's functions.php file to order the posts differently //order custom post type posts list in admin function posts_for_current_author($query) { if($query->is_admin) [...]

Remove Unused WordPress User Roles

By |2014-09-10T21:44:26+01:00August 13th, 2014|Snippits|

To simplify the user roles option for your client, remove any unused roles from Wordpress. Paste the following code into your them's functions.php file. //Remove unused user roles remove_role('subscriber'); remove_role('author'); remove_role('contributor');    

Edit The Number Of Related Products on WooCommerce Single Product Page

By |2014-09-10T21:44:13+01:00August 2nd, 2014|Snippits|

By default Woocommerce displays 4 related products on your website's single-product page. Modify the output using the function below. Paste the code below into your theme's functions.php file. // Redefine woocommerce_output_related_products() function woocommerce_output_related_products() { woocommerce_related_products(6,3); [...]

July 2014

Load More Posts