Skip to content

James’ Posts

How to Change Sender Name and Email in Outgoing WordPress Emails

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 add a WordPress login form to any page or post

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=””] */ function djs_login_form_shortcode( $atts, $content = null ) { $defaults…

Read More

Moving Site to HTTPS using .htaccess

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

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

If your multisite network is redirecting to 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} ^…

Read More

How to Move Related Products Into a Woocommerce Tab

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

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
Menu Title
Scroll To Top