Viewing 2 replies - 1 through 2 (of 2 total)
  • I guess its to do with when it loads. functions.php loads early.

    Plugin Author Shea Bunge

    (@bungeshea)

    Yep, more or less. Code Snippets run earlier than the themes are loaded, and you cannot remove an action which hasn’t been registered yet.

    Here’s how you can adjust that snippet so it will work:

    add_action( 'init', function () {
    
    	//* Remove the site title
    	remove_action( ‘genesis_site_title’, ‘genesis_seo_site_title’ );
    
    } );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code working in functions.php but not in Code Snippets plugin’ is closed to new replies.