Skip to content

Instantly share code, notes, and snippets.

@pavlo-bondarchuk
Created December 28, 2019 03:15
Show Gist options
  • Select an option

  • Save pavlo-bondarchuk/3cd06a8013de852c5ed6d13a8da97d23 to your computer and use it in GitHub Desktop.

Select an option

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
<!--//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