• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Using an SEO plugin that doesn't trigger Genesis SEO deactivation

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Using an SEO plugin that doesn't trigger Genesis SEO deactivation

This topic is: resolved

Tagged: Genesis SEO, seo, Smartcrawl, WPMUDEV

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 8 months ago by sahdow.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 24, 2018 at 9:02 am #223954
    sahdow
    Participant

    I'm using Smartcrawl by WPMUDEV and unlike Yoast or AIO Genesis doesn't disable the SEO feature when the Smartcrawl plugin is activated.

    How can I manually disable the Genesis SEO Features? I'm assuming there must be something that can be added to child theme functions but Google hasn't been helpful in this case.

    October 24, 2018 at 10:35 am #223956
    Victor Font
    Moderator

    There is a filter you can use to add your own parameter to detect the plugin you are using. The filter can be found in the genesis/lib/functions/seo.php file at line 155. The actual code is:

    // Use this filter to adjust plugin tests.
    apply_filters(
    	'genesis_detect_seo_plugins',
    	// Add to this array to add new plugin checks.
    	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' ),
    	)
    )

    This filter allows you to detect your plugin either by class, function, or a constant that you can define. You would use it by creating something like this in your functions.php:

    define( 'SMARTCRAWL', true);
    
    add_filter('genesis_detect_seo_plugins','detect_my_seo_plugin');
    function detect_my_seo_plugin( $seo_plugins ) {
        
        $seo_plugins[constants][] = "SMARTCRAWL";
    
        return $seo_plugins;
    }

    I can't test this because I don't have access to your Smartcrawl plugin. It may be easier for you to detect a class or function. I don't know. You'll have to figure that one out yourself.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    October 31, 2018 at 6:26 am #224091
    sahdow
    Participant

    Thanks Victor solution for anyone else who needs it is below:

    /** Disable Genesis SEO When SmartCrawl Enabled */
    add_filter('genesis_detect_seo_plugins', 'md_disable_genesis_seo');
    function md_disable_genesis_seo( $array ) {
        $array['classes'][] = "Smartcrawl_Loader";
        return $array;
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Using an SEO plugin that doesn't trigger Genesis SEO deactivation’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble