• Home
  • Cloud
    • General
    • SaaS
    • BPaaS
    • PaaS
    • IaaS
    • Other Internet Hosted Applications
      • WordPress
        • WooThemes Canvas
          • WooThemes Canvas CSS
  • About me
  • Why Badly Wired?
  • Contact

Badly Wired

Alan's technical notebook - WordPress and other stuff

You are here: Home / Genesis / Turn off Genesis theme SEO feature

Turn off Genesis theme SEO feature

12th November 2014 by Alan Leave a Comment

Fully Managed UK Hosting - Only £1+VAT till 1st Jan 2021 on Shared, Reseller and Dedicated Hosting! .... read more ....

Genesis framework comes with an in-built SEO feature. This is great, unless you don’t want it and want to turn it off to use another plugin

The creators of Genesis have thought of this and have set it up to automatically switch off when another popular SEO plugin is installed.

Fully Managed UK Hosting - Only £1+VAT till 1st Jan 2021 on Shared, Reseller and Dedicated Hosting! .... read more ....

However, what if the plugin you are using is one that Genesis doesn’t detect? Or you want to turn off Genesis SEO for another reason?

Well the developers have made it easy with a filter that you can adjust the array of detection criteria. The array contains ‘classes’, ‘functions’ and ‘constants’ and you can just use the filter to add the appropriate item.

The detection array looks like this at the time of writing

array(

      // Classes to detect.
      'classes' => array(
              'All_in_One_SEO_Pack',
              'All_in_One_SEO_Pack_p',
              'HeadSpace_Plugin',
              'Platinum_SEO_Pack',
              'wpSEO',
              'SEO_Ultimate',
               ),
       // Functions to detect.
               'functions' => array(),
       // Constants to detect.
                'constants' => array( 'WPSEO_VERSION', ),
)

 

So a very simple approach would be to define a constant in wp-config.php , e.g. define( ‘HIDE_GENESIS_SEO’, true );

and then add the following to your functions.php to append the constant to the detection array via the filter ‘genesis_detect_seo_plugins’

add_filter( 'genesis_detect_seo_plugins', 'turn_off_seo' );
function turn_off_seo( $array ) {	
	$array['constants'][] = 'HIDE_GENESIS_SEO';
	return $array;
}

One SEO plugin that is not detected is WPMUdev’s Infinite SEO. If you want your Genesis theme to auto detect this then the following code in your functions.php should do the trick

add_filter( 'genesis_detect_seo_plugins', 'add_infinite_seo' );
function add_infinite_seo( $array ) {
	$array['functions'][] = '_wds_init';
	return $array;

}

 

 

[Next] Find out where to host WordPress [Read the full article…]

Filed Under: Genesis  Tagged: genesis, plugins, SEO, themes, wpmudev

About Alan

I'm Alan from Fullworks Digital Ltd, where I develop WordPress Plugins .

My day job consists of developing new code and solutions along with support my WordPress plugin user.

I started as a professional programmer in 1979 and had been involved with the IT of business technology in virtually every area that exist.

Badlywired.com is my technical notebook, my aide memoire of the many interesting facts that I come across and 'how to' recipes of things I do infrequently. As I spend a lot of time gathering parts of solutions from the internet and assembling them into my own solutions, and also just learning how to do things, this blog is one way of giving something back to the online community that has helped me extensively.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Applications
  • Cloud
    • General
    • Google Cloud
    • IaaS
    • Other Internet Hosted Applications
      • Wordpress
        • WooThemes Canvas
        • WooThemes Canvas CSS
    • SaaS
  • Code snippets
  • Discounts
  • Genesis
  • Google Apps for Works
  • Linux
  • News
  • SEO
  • Server setup
  • Services
  • Tech Tips
  • Uncategorised
  • Useful Images
  • Useful Stuff
  • WordPress Hosting
  • WordPress Plugins

Tags

background jobs beadcrumbs bind brandings Cache canvas Centos chrome css fail2ban Find firefox Flash fraud genesis gocardless godaddy Google google maps hackers internet explorer javascript KashFlow Linus linux Magento mapquest maps microsoft mysql news nohup php plugin plugins queens diamond jubilee replace SED SEO skype Varnish Virtualmin Webmin woothemes Wordpress

 

Affiliate and Privacy Notices

This site is free to use, but hopes to cover some costs through affiliate income, some products and links are affiliates and may earn the site advertising income.

Some affiliates use Cookies to track if you purchase from them, this allows them to apportion revenue to us you will need to refer to their specific privacy notices as to how you are tracked.

This site is a participant in the Amazon EU Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.co.uk.

  • Privacy Policy

Copyright © 2021 · Badly Wired