Skip to content

Instantly share code, notes, and snippets.

@DavidWells
Last active August 29, 2015 13:56
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 DavidWells/8797441 to your computer and use it in GitHub Desktop.
Save DavidWells/8797441 to your computer and use it in GitHub Desktop.
Wordpress Landing pages and genesis <title> fix
<?php // Remove this <?php tag before inserting to functions
add_action( 'after_setup_theme', 'fix_bad_genesis_filter');
function fix_bad_genesis_filter() {
// fix for genesis and catalyst framework
$priority = ( function_exists( 'genesis' ) ) || ( function_exists( 'catalyst_activate' ) ) ? 6 : 50;
add_filter('wp_title','lp_ab_testing_alter_title_area', $priority, 3 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment