Blog

James' Posts

Force Login Plugin With Custom Login Page and PowerPack for Beaver Builder

By DJ Nickles

How does one protect all content by restricting access to it for only logged in users and have the logged out users redirected to a custom login page built using Beaver Builder PowerPack? 1. Create a new custom login page with Beaver Builder PowerPack and insert the login module. 2. Add plugin “Force Login” which…

Read More

How to Change Sender Name and Email in Outgoing WordPress Emails

By DJ Nickles

The best way to change the default sender name and email address for outgoing WordPress emails is by making a quick addition to your theme’s functions.php file. By default, WordPress uses ‘WordPress’ as the sender name for all outgoing WordPress notification emails. And it uses the admin email as the default email. Customizing those items…

Read More

How to Block Foreign Internet Traffic to Your Website by Country Code in .htaccess Using Cloudflare

By DJ Nickles

There are a myriad of different ways to block internet traffic to your website from foreign countries.  Most of them cause a strain on your server by comparing each visitor’s ip address with a list of ip address ranges inserted in your htaccess file. There are also country traffic blocking services that are not free…

Read More

How to add a WordPress login form to any page or post

By DJ Nickles

Sometimes you want to be able to add a login form anywhere on your WordPress website. You can add the following code to your child theme’s functions.php file. add_shortcode( ‘djs-login-form’, ‘djs_login_form_shortcode’ ); /* Use this shortcode to display a login form anywhere – [djs-login-form redirect=”http://yoursite.com/somewhere”] */ function djs_login_form_shortcode( $atts, $content = null ) { $defaults…

Read More

Moving Site to HTTPS using .htaccess

By DJ Nickles

To move or redirect your WordPress site to run completely using HTTPS, insert the following code into your .htaccess file: # First rewrite to HTTPS: # Don’t put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite…

Read More

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

Calvin and Hobbs IFTTT

November 29, 2015 at 07:16AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1MN4thr November 29, 2015 at 07:16AM

Read More

November 28, 2015 at 11:00PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1QN4Yfz November 28, 2015 at 11:00PM

Read More

November 26, 2015 at 12:02PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1jlPTTJ November 26, 2015 at 12:02PM

Read More

November 25, 2015 at 01:02PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1PPc8j8 November 25, 2015 at 01:02PM

Read More

November 25, 2015 at 12:44AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1jj6uYb November 25, 2015 at 12:44AM

Read More

November 24, 2015 at 01:12PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1OqDglh November 24, 2015 at 01:12PM

Read More

November 22, 2015 at 07:31AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1SSuxcG November 22, 2015 at 07:31AM

Read More

November 21, 2015 at 12:57PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1I3B184 November 21, 2015 at 12:57PM

Read More

November 20, 2015 at 12:34PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1lziFBY November 20, 2015 at 12:34PM

Read More
Menu Title