Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Created May 2, 2020 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vfontjr/4d7e83d23b4d6ac8b32b48bf6068e962 to your computer and use it in GitHub Desktop.
Save vfontjr/4d7e83d23b4d6ac8b32b48bf6068e962 to your computer and use it in GitHub Desktop.
<?php
//* Add accessibility support
add_theme_support( 'genesis-accessibility', array( '404-page', 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) );
<?php
function genesis_superfish_enabled() {
return ( ! genesis_html5() && genesis_get_option( 'superfish' ) ) || genesis_a11y( 'drop-down-menu' ) || apply_filters( 'genesis_superfish_enabled', false );
}
apply_filters( 'genesis_superfish_enabled', false );
<?php
add_action( 'wp_enqueue_scripts', 'sp_disable_superfish' );
function sp_disable_superfish() {
wp_deregister_script( 'superfish' );
wp_deregister_script( 'superfish-args' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment