Add Back Genesis SEO Custom Redirect URL Field When Yoast SEO Plugin is Active

The code in this tutorial enables you to add back the Custom Redirect URL meta box which is included in the inpost SEO Settings. The input field is removed along with the Theme SEO Settings on all Edit Post/Page screens when the Yoast SEO plugin is active.

Demo Video

Genesis includes code which checks for activation of popular SEO plugins and removes the Genesis SEO Settings as well as the Inpost Theme SEO Settings meta boxe when a plugin like Yoast’s is activated.

custom-redirect-url

The solution in this post is based on this question from a member of the StudioPress community forums:

I noticed that when you use the Yoast SEO plugin, the option for Custom Redirect URLs disappears from the Layout Settings. Now that Yoast has taken away that function in their plugin, how do I get that option back in the Layout Settings?

There’s only 2 steps to install the code in any Genesis child theme:

Step 1

Add the following line of PHP code to your child themes functions file:

include_once( get_stylesheet_directory() . '/redirect-url.php' );

Step 2

Download the redirect-url.php file below and upload it to your child themes root directory:

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.