Manual

[vc_row background=”primary” el_id=”configuration” css=”.vc_custom_1513348519707{padding-right: 0px !important;padding-left: 0px !important;}”][vc_column width=”1/3″][quadmenu_vc menu=”73″ theme=”quadmenu_documentation”][/vc_column][vc_column width=”2/3″][vc_raw_html]JTNDc3R5bGUlM0UlMEElMjNtYWluLWNvbnRlbnQlMjAuZ3NjLWNvbnRyb2wtY3NlJTIwJTdCJTBBJTA5cGFkZGluZyUzQSUyMDAlM0IlMEElMDljbGVhciUzQSUyMGJvdGglM0IlMEElMDlib3JkZXIlM0ElMjBub25lJTNCJTBBJTdEJTBBJTIzbWFpbi1jb250ZW50JTIwLmdzYy1jb250cm9sLWNzZSUyMC5nc2Mtc2VhcmNoLWJveCUyMCU3QiUwQSUwOWJhY2tncm91bmQlM0ElMjAlMjNmMGYwZjAlM0IlMEElMDljbGVhciUzQWJvdGglM0IlMEElMDlwb3NpdGlvbiUzQXJlbGF0aXZlJTNCJTBBJTA5cGFkZGluZyUzQSUyMDIwcHglM0IlMEElMDlib3gtc2l6aW5nJTNBYm9yZGVyLWJveCUzQiUwQSUyMCUyMCUyMCUyMG1hcmdpbiUzQSUyMDAlM0IlMEElN0QlMEElMjNtYWluLWNvbnRlbnQlMjB0YWJsZS5nc2Mtc2VhcmNoLWJveCUyMHRkJTIwJTdCJTBBJTA5cGFkZGluZyUzQSUyMDAlMjAlMjFpbXBvcnRhbnQlM0IlMEElMDltYXJnaW4lM0ElMjAwJTNCJTBBJTA5Ym9yZGVyJTNBJTIwbm9uZSUzQiUwQSU3RCUwQSUyM21haW4tY29udGVudCUyMC5nc2MtaW5wdXQtYm94JTIwJTdCJTBBJTA5Ym9yZGVyJTNBJTIwbm9uZSUzQiUwQSUwOWJhY2tncm91bmQlM0ElMjBub25lJTNCJTBBJTA5aGVpZ2h0JTNBJTIwYXV0byUzQiUwQSU3RCUwQSUyM21haW4tY29udGVudCUyMC5nc2MtaW5wdXQtYm94JTIwaW5wdXQlMjAlN0IlMEElMDlib3JkZXIlM0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wQSUyMCUyMCUyMCUyMGdjc2UudHlwZSUyMCUzRCUyMCUyN3RleHQlMkZqYXZhc2NyaXB0JTI3JTNCJTBBJTIwJTIwJTIwJTIwZ2NzZS5hc3luYyUyMCUzRCUyMHRydWUlM0IlMEElMjAlMjAlMjAlMjBnY3NlLnNyYyUyMCUzRCUyMCUyN2h0dHBzJTNBJTJGJTJGY3NlLmdvb2dsZS5jb20lMkZjc2UuanMlM0ZjeCUzRCUyNyUyMCUyQiUyMGN4JTNCJTBBJTIwJTIwJTIwJTIwdmFyJTIwcyUyMCUzRCUyMGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lJTI4JTI3c2NyaXB0JTI3JTI5JTVCMCU1RCUzQiUwQSUyMCUyMCUyMCUyMHMucGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUlMjhnY3NlJTJDJTIwcyUyOSUzQiUwQSUyMCUyMCU3RCUyOSUyOCUyOSUzQiUwQSUzQyUyRnNjcmlwdCUzRSUwQSUzQ2djc2UlM0FzZWFyY2glMjBnbmFtZSUzRCUyMnF1YWRtZW51LTMlMjIlM0UlM0MlMkZnY3NlJTNBc2VhcmNoJTNFJTBBJTNDJTJGZGl2JTNF[/vc_raw_html][vsc-section-title title=”7.2. Manual Integration“]Manual Integration simply requires pasting a line of code generated by QuadMenu into the appropriate location in your theme’s template. In most cases, you will also remove or conditionally exclude the theme’s default menu. Manual integration can be used to place a menu anywhere in your theme templates.[/vsc-section-title][vc_column_text]If your theme does not meet the requirements for auto integration, you will have to go through the manual integration process. Thats means that you will have to play with a few lines of code, but don’t be scared, it is very simple.[/vc_column_text][vc_single_image image=”11520″ alignment=”center”][/vc_column][/vc_row][vc_row full_width=”stretch_row” vsc_bg_color=”#f0f0f0″ css=”.vc_custom_1513454300848{padding-top: 60px !important;padding-bottom: 60px !important;}”][vc_column width=”1/2″][vsc-text-icon title_size=”h3″ align=”left” type=”linecons” icon_linecons=”vc_li vc_li-settings” icon_size=”40px” title=”Integration Codes”][/vsc-text-icon][vc_column_text]Go to QuadMenu Menu > Panel > Your Theme Location and choose Manual from the Integration option.

After you select this option, the code to integrate QuadMenu through a shortcode or a PHP function will be generated automatically.

Also, due to how the plugin works, all custom theme locations have to be manually integrated. When you go to their dedicated tab, from the left QuadMenu Options sidebar, you will only see the manual integration instructions, as it is the only option available for custom theme locations.[/vc_column_text][/vc_column][vc_column width=”1/2″][vc_single_image image=”11522″ alignment=”center” img_size=”large”][/vc_column][/vc_row][vc_row full_width=”stretch_row” vsc_row_type=”” bg_image=”” bg_color=”” css=”.vc_custom_1516732809281{padding-top: 60px !important;padding-bottom: 60px !important;}”][vc_column width=”1/2″][vsc-text-icon title_size=”h3″ align=”left” type=”linecons” icon_linecons=”vc_li vc_li-settings” icon_size=”40px” title=”Theme without menu locations”][/vsc-text-icon][vc_column_text]If your theme doesn’t include any theme locations, you will have to copy and paste the PHP function in the header.php file, located in your theme’s folder.

The easiest way is to insert the QuadMenu Plugin after the tag, as this will avoid any overlap of the original theme. You also ensure proper incorporation into the structure of the HTML document.[/vc_column_text][/vc_column][vc_column width=”1/2″][vc_column_text]

<?php
/**
 * The Header template for our theme
 *
 */
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>

?>

[/vc_column_text][vc_column_text]

<?php if( function_exists( 'quadmenu' ) ): ?>
<?php quadmenu(array('menu'=> '1', 'theme' => 'default_theme')); ?>
<?php endif; ?>

[/vc_column_text][vc_column_text]

<body <?php body_class(); ?>>

[/vc_column_text][vc_column_text]

<nav id="navigation">
 <?php wp_nav_menu( array( 'menu'=> '1', 'theme' => 'default_theme' ) ); ?>
</nav>

[/vc_column_text][vc_column_text]For example, if the menu in your theme looks like this:[/vc_column_text][vc_column_text]We can integrate QuadMenu the following way:[/vc_column_text][vc_column_text]

<?php if( function_exists( 'quadmenu' ) ): ?>
 <?php quadmenu(array('menu'=> '1', 'theme' => 'default_theme')); ?>
<?php else: ?>
 <nav id="navigation">
 <?php wp_nav_menu( array( 'menu'=> '1', 'theme' => 'default_theme' ) ); ?>
 </nav>
<?php endif; ?>

[/vc_column_text][vc_column_text]Note: Please note that we’ve also replaced the navigation tag, as this could interfere with the proper functionality of the menu, like in Example 2, from the Automatic Integration.:[/vc_column_text][/vc_column][/vc_row][vc_row full_width=”stretch_row” vsc_bg_color=”#f0f0f0″ css=”.vc_custom_1513454329099{padding-top: 60px !important;padding-bottom: 60px !important;}”][vc_column width=”1/2″][vsc-text-icon title_size=”h3″ align=”left” type=”linecons” icon_linecons=”vc_li vc_li-settings” icon_size=”40px” title=”Replace an existing menu”][/vsc-text-icon][vc_column_text]If you have to replace an existing menu, then you need to find your theme’s file with the wp_nav_menu function. For most themes, this is the header.php file.

A good strategy is to make sure that QuadMenu is activated and call the menu function that comes by default in the theme.[/vc_column_text][/vc_column][vc_column width=”1/2″][vc_column_text]For example, if the menu in your theme looks like this:[/vc_column_text][vc_column_text]We can integrate QuadMenu the following way:[/vc_column_text][vc_column_text]

<?php if( function_exists( 'quadmenu' ) ): ?>
 <?php quadmenu(array('theme_location' => 'primary-nav')); ?>
<?php else: ?>
 <nav id="navigation">
 <?php wp_nav_menu( array('theme_location' => 'primary-nav' ) ); ?>
 </nav>
<?php endif; ?>

[/vc_column_text][vc_column_text]Note: Please note that we’ve also replaced the navigation tag, as this could interfere with the proper functionality of the menu, like in Example 2, from the Automatic Integration.[/vc_column_text][/vc_column][/vc_row]