Created
December 28, 2019 03:15
-
-
Save pavlo-bondarchuk/3cd06a8013de852c5ed6d13a8da97d23 to your computer and use it in GitHub Desktop.
integration hero menu plugin in enfold child theme - replace start with line 74
This file contains hidden or 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
| <!--//https://heroplugins.com/product/hero-menu/documentation/?section=knowledge_base&article=Enfold//--> | |
| <?php | |
| if(!$blank) //blank templates dont display header nor footer | |
| { | |
| if(!class_exists( 'hmenu_frontend')){ | |
| //fetch the template file that holds the main menu, located in includes/helper-menu-main.php | |
| get_template_part( 'includes/helper', 'main-menu' ); | |
| } else { | |
| // wp_nav_menu( array( 'theme_location' => 'avia' ) ); | |
| echo do_shortcode( "[hmenu id=2]" ); | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment