Created
May 12, 2020 22:59
-
-
Save ibndawood/8f0eb2a0dedeca76aca83dfd742a2294 to your computer and use it in GitHub Desktop.
Electro v2 - Do not show dropdown in Home v1 for Header v1
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
add_filter( 'electro_departments_menu_v2_enable_dropdown', 'ec_child_enable_dropdown_header_v1_home_v1', 20 ); | |
function ec_child_enable_dropdown_header_v1_home_v1( $enable_dropdown ) { | |
if ( is_page_template( 'template-homepage-v1.php' ) ) { | |
$enable_dropdown = true; | |
} | |
return $enable_dropdown; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment