Blog

James' Posts

WooCommerce Image Gallery Shortcode

By DJ Nickles

WooCommerce does not provide a woocommerce image gallery shortcode to be used in Beaver Builder Themer or other page builders. But sometimes you want to develop a different WooCommerce template that places the featured image gallery in a different location than the default. You can add the following code to your child theme’s functions.php file.…

Read More

How to fix WordPress Multisite wp-signup.php?new= redirect

By DJ Nickles

If your multisite network is redirecting to www.example.com/wp-signup.php?new=example.com then your site is most likely interpreting www. to be a new site on your network. You’ll need to add some corrective instruction to your .htaccess file. Note: For subdomains, each subdomain will need its own redirect instructions. # DOMAIN #1 – Force www RewriteCond %{HTTP_HOST} ^domain1.com…

Read More

How to Move Related Products Into a Woocommerce Tab

By DJ Nickles

In order to move Woocommerce related products into a tab, place the following code snippet in your child theme’s functions.php file: // Remove standard Related Products section remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 ); /** * Add Tab * * Set the priority to position the tab * Default is 25, this adds the tab between additional…

Read More

How to Change Multisite Domain

By DJ Nickles

Steps to changing the core domain of a WordPress multisite network: 1. Load and run Interconnect’s “Search and Replace” (DATABASE SEARCH AND REPLACE SCRIPT IN PHP, NOT THE PLUGIN) replacing the old domain with the new. It will change the following tables… wp_options: options named “siteurl” and “home” wp_site wp_sitemeta: the option named “siteurl” wp_blogs:…

Read More

Woocommerce Role Based Taxes or Prevent Wholesaler Shipping Tax

By DJ Nickles

While creating a Woocommerce product you can indicate whether or not the product is taxable using the Tax Status and Tax Class fields. But if you’ve enabled Shipping Tax in Woocommerce settings, then wholesale customers will still see a shipping tax. My solution: add a Woocommerce role based tax exempt filter to the child theme. It…

Read More

Protectionism Bad, Localization Good

By DJ Nickles

Protectionism is bad for the economy as was demonstrated in the late 1920’s early 1930’s. Import taxes or any other special interest subsidies artificially inflate prices and ultimately reduce the quality of life for everyone except the benefactors of the subsidy. According to the Bureau of Labor Statistics, there are 9 million US workers in…

Read More

Source Code inside a WordPress Blog Post or Page

By DJ Nickles
[code language=”insert language here from list below“] your code goes here [/code] The language (or lang) parameter controls how the code is syntax highlighted. Supported Languages: actionscript3 bash clojure coldfusion cpp csharp css delphi diff erlang fsharp go groovy html java javafx javascript latex (you can also render LaTeX) matlab (keywords only) objc perl php…

Read More

Domain Mapping Without a Plugin for WordPress Multisite Installation

By DJ Nickles

Domain mapping for WordPress multisite installation used to require a plugin such as “WordPress MU Domain Mapping” (free) or  “Domain Mapping” (premium plugin good for automation and monetizing network) or “Pronamic Domain Mapping” (free).  That is no longer the case. The following variations are domain mapping solutions for a subdomain multisite that don’t require a…

Read More

Caution: Is Your Gmail Account at Risk?

By DJ Nickles

Your Gmail account could be at risk along with everything in it and everyone attached to it. The same holds true for Facebook, Twitter, your bank accounts, and any other account that requires a login. There is a phishing exploit that is gaining traction and sooner or later you’ll be exposed to it. Here is…

Read More

Calvin and Hobbs IFTTT

Bill Watterson (of Calvin and Hobbes fame) Returned Briefly for Charity

By DJ Nickles

Bill Watterson collaborates with Stephan Pastis on a 3 strip sequence for charity.  HERE, HERE, and HERE. The full story is found on Pastis’ blog.

Read More

December 15, 2015 at 03:20PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1MfJwYZ December 15, 2015 at 03:20PM

Read More

December 15, 2015 at 12:41AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1IRsup2 December 15, 2015 at 12:41AM

Read More

December 13, 2015 at 07:30AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1I1E94O December 13, 2015 at 07:30AM

Read More

December 12, 2015 at 03:06PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1RhiPLi December 12, 2015 at 03:06PM

Read More

December 11, 2015 at 02:03PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1UenfRU December 11, 2015 at 02:03PM

Read More

December 10, 2015 at 10:17PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1NR4vCv December 10, 2015 at 10:17PM

Read More

December 10, 2015 at 12:43PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1jR5V88 December 10, 2015 at 12:43PM

Read More

December 08, 2015 at 12:59PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1lMLlan December 08, 2015 at 12:59PM

Read More
Menu Title