Last active
August 29, 2015 13:56
-
-
Save DavidWells/8797441 to your computer and use it in GitHub Desktop.
Wordpress Landing pages and genesis <title> fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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