{"id":2131,"date":"2021-01-15T13:51:07","date_gmt":"2021-01-15T13:51:07","guid":{"rendered":"https:\/\/grooni.com\/docs\/groovy-menu\/?page_id=2131"},"modified":"2021-01-18T16:08:48","modified_gmt":"2021-01-18T16:08:48","slug":"bridge-theme","status":"publish","type":"page","link":"https:\/\/grooni.com\/docs\/groovy-menu\/theme-integration\/bridge-theme\/","title":{"rendered":"Bridge Theme"},"content":{"rendered":"<p>Add this code into <code>header.php<\/code> of your <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">child theme<\/a>.<\/p>\n<blockquote>\n<p>Please make all changes to the child theme files, and do not add the code directly to the theme files, otherwise after updating the theme your fixes will be lost<\/p>\n<\/blockquote>\n<p><code>header.php<\/code><\/p>\n<pre><code>if ( function_exists( 'groovy_menu' ) ) {\n\tgroovy_menu();\n}\n<\/code><\/pre>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<h2>Bridge Child Theme with Groovy Mega Menu\u00a0<\/h2>\n\n<div class=\"alert alert-warning\"><strong>Note:<\/strong> You can find archive with Bridge Theme inside the plugin, please follow to<code>Groovy Menu &gt; Integration<\/code> section<\/div>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<p><code>header.php<\/code><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ Prevent file from being loaded directly\nif ( ! defined( 'ABSPATH' ) ) {\n\tdie( '-1' );\n}\n\nif ( ! function_exists( 'bridge_qode_child_theme_enqueue_scripts' ) ) {\n\n\tFunction bridge_qode_child_theme_enqueue_scripts() {\n\t\twp_register_style( 'bridge-childstyle', get_stylesheet_directory_uri() . '\/style.css' );\n\t\twp_enqueue_style( 'bridge-childstyle' );\n\t}\n\n\tadd_action( 'wp_enqueue_scripts', 'bridge_qode_child_theme_enqueue_scripts', 11 );\n}\n<\/code><\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<p><code>header.php<\/code><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$bridge_qode_options = bridge_qode_return_global_options();\n?>\n&lt;!DOCTYPE html>\n&lt;html &lt;?php language_attributes(); ?>>\n&lt;head>\n\t&lt;meta charset=\"&lt;?php bloginfo( 'charset' ); ?>\"\/>\n\t&lt;?php\n\t$bridge_qode_is_IE = bridge_qode_return_is_ie_variable();\n\n\tif ( ! empty( $bridge_qode_is_IE ) &amp;&amp; $bridge_qode_is_IE ) { ?>\n\t\t&lt;meta content=\"IE=edge,chrome=1\" http-equiv=\"X-UA-Compatible\">\n\t&lt;?php } ?>\n\n\t&lt;?php\n\t\/**\n\t * bridge_qode_header_meta hook\n\t *\n\t * @see bridge_core_header_meta() - hooked with 10\n\t * @see bridge_qode_user_scalable_meta() - hooked with 10\n\t *\/\n\tdo_action( 'bridge_qode_action_header_meta' );\n\t?>\n\n\t&lt;link rel=\"profile\" href=\"http:\/\/gmpg.org\/xfn\/11\"\/>\n\t&lt;link rel=\"pingback\" href=\"&lt;?php bloginfo( 'pingback_url' ); ?>\"\/>\n\n\t&lt;?php wp_head(); ?>\n&lt;\/head>\n\n&lt;body &lt;?php body_class(); ?> itemscope itemtype=\"http:\/\/schema.org\/WebPage\">\n&lt;?php\n\/\/Groovy Menu Integration ---start\nif ( function_exists( 'groovy_menu' ) ) {\n\tgroovy_menu();\n}\n\/\/Groovy Menu Integration ---end\n?>\n&lt;?php\n\/\/Wordpress 5.2 default action\ndo_action( 'wp_body_open' );\n\n?>\n\n&lt;?php\n$params = bridge_qode_header_parameters();\nextract( $params );\n\necho bridge_qode_get_module_template_part( 'templates\/parts\/ajax-loader', 'header' );\n\necho bridge_qode_get_module_template_part( 'templates\/side-area\/side-area', 'header', '', $params );\necho bridge_qode_get_module_template_part( 'templates\/panel-area', 'panel-area', '', $params );\n?>\n\n&lt;div class=\"wrapper\">\n\t&lt;div class=\"wrapper_inner\">\n\n\t\t&lt;?php do_action( 'bridge_qode_action_after_wrapper_inner' ); ?>\n\n\t\t&lt;?php\n\t\t\/\/Groovy Menu Integration ---start\n\t\tif ( ! function_exists( 'groovy_menu' ) ) {\n\t\t\t?>\n\n\t\t\t&lt;?php\n\t\t\tif ( $enable_vertical_menu ) {\n\t\t\t\techo bridge_qode_get_module_template_part( 'templates\/vertical-header', 'header', '', $params );\n\t\t\t} else {\n\t\t\t\tswitch ( $header_bottom_appearance ) {\n\t\t\t\t\tcase 'stick menu_bottom':\n\t\t\t\t\t\t$header_appearance_slug = 'stick_menu_bottom';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'fixed fixed_minimal':\n\t\t\t\t\t\t$header_appearance_slug = 'fixed_minimal';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$header_appearance_slug = $header_bottom_appearance;\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\techo bridge_qode_get_module_template_part( 'templates\/header-appearance\/header', 'header', $header_appearance_slug, $params );\n\t\t\t}\n\n\t\t\techo bridge_qode_get_module_template_part( 'templates\/parts\/back-to-top', 'header', '', $params );\n\t\t\techo bridge_qode_get_module_template_part( 'templates\/popup-menu\/popup-menu', 'header', '', $params );\n\t\t\techo bridge_qode_get_module_template_part( 'templates\/parts\/fullscreen-search', 'header', '', $params );\n\t\t\t?>\n\n\t\t\t&lt;?php\n\t\t}\n\t\t\/\/Groovy Menu Integration ---end\n\t\t?>\n\n\n\t\t&lt;?php if ( bridge_qode_options()->getOptionValue( 'paspartu' ) == 'yes' ){ ?>\n\t\t&lt;div class=\"paspartu_outer &lt;?php echo bridge_qode_get_paspartu_class(); ?>\">\n\t\t\t&lt;?php if ( bridge_qode_options()->getOptionValue( 'vertical_area' ) == \"yes\" &amp;&amp; bridge_qode_options()->getOptionValue( 'vertical_menu_inside_paspartu' ) == 'no' ) { ?>\n\t\t\t&lt;div class=\"paspartu_middle_inner\">\n\t\t\t\t&lt;?php } ?>\n\n\t\t\t\t&lt;?php if ( ( bridge_qode_options()->getOptionValue( 'paspartu_on_top' ) == 'yes' &amp;&amp; bridge_qode_options()->getOptionValue( 'paspartu_on_top_fixed' ) == 'yes' ) ||\n\t\t\t\t           ( bridge_qode_options()->getOptionValue( 'vertical_area' ) == \"yes\" &amp;&amp; bridge_qode_options()->getOptionValue( 'vertical_menu_inside_paspartu' ) == 'yes' ) ) { ?>\n\t\t\t\t\t&lt;div class=\"paspartu_top\">&lt;\/div>\n\t\t\t\t&lt;?php } ?>\n\n\t\t\t\t&lt;div class=\"paspartu_left\">&lt;\/div>\n\t\t\t\t&lt;div class=\"paspartu_right\">&lt;\/div>\n\t\t\t\t&lt;div class=\"paspartu_inner\">\n\t\t\t\t\t&lt;?php } ?>\n\n\t\t\t\t\t&lt;?php if ( is_active_sidebar( 'left_side_fixed' ) ) { ?>\n\t\t\t\t\t\t&lt;div class=\"qode_left_side_fixed\">\n\t\t\t\t\t\t\t&lt;?php\n\t\t\t\t\t\t\tdynamic_sidebar( 'left_side_fixed' );\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t&lt;\/div>\n\t\t\t\t\t&lt;?php } ?>\n\n\t\t\t\t\t&lt;?php if ( is_active_sidebar( 'right_side_fixed' ) ) { ?>\n\t\t\t\t\t\t&lt;div class=\"qode_right_side_fixed\">\n\t\t\t\t\t\t\t&lt;?php\n\t\t\t\t\t\t\tdynamic_sidebar( 'right_side_fixed' );\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t&lt;\/div>\n\t\t\t\t\t&lt;?php } ?>\n\n\t\t\t\t\t&lt;div class=\"content &lt;?php echo bridge_qode_get_content_class(); ?>\">\n\t\t\t\t\t\t&lt;?php\n\t\t\t\t\t\t$animation = get_post_meta( $id, \"qode_show-animation\", true );\n\t\t\t\t\t\tif ( ! empty( $_SESSION&#91;'qode_animation'] ) &amp;&amp; $animation == \"\" ) {\n\t\t\t\t\t\t\t$animation = $_SESSION&#91;'qode_animation'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( in_array( bridge_qode_options()->getOptionValue( 'page_transitions' ), array(\n\t\t\t\t\t\t\t\t'1',\n\t\t\t\t\t\t\t\t'2',\n\t\t\t\t\t\t\t\t'3',\n\t\t\t\t\t\t\t\t'4'\n\t\t\t\t\t\t\t) ) || in_array( $animation, array( \"updown\", \"fade\", \"updown_fade\", \"leftright\" ) ) ) { ?>\n\t\t\t\t\t\t\t&lt;div class=\"meta\">\n\n\t\t\t\t\t\t\t\t&lt;?php\n\t\t\t\t\t\t\t\t\/**\n\t\t\t\t\t\t\t\t * bridge_qode_action_ajax_meta hook\n\t\t\t\t\t\t\t\t *\n\t\t\t\t\t\t\t\t * @hooked bridge_qode_action_ajax_meta - 10\n\t\t\t\t\t\t\t\t *\/\n\t\t\t\t\t\t\t\tdo_action( 'bridge_qode_action_ajax_meta' ); ?>\n\n\t\t\t\t\t\t\t\t&lt;span id=\"qode_page_id\">&lt;?php echo esc_attr( bridge_qode_get_page_id() ); ?>&lt;\/span>\n\t\t\t\t\t\t\t\t&lt;div class=\"body_classes\">&lt;?php echo implode( ',', get_body_class() ); ?>&lt;\/div>\n\t\t\t\t\t\t\t&lt;\/div>\n\t\t\t\t\t\t&lt;?php } ?>\n\t\t\t\t\t\t&lt;div class=\"content_inner &lt;?php echo esc_attr( $animation ); ?> \">\n\t\t\t\t\t\t\t&lt;?php if ( in_array( bridge_qode_options()->getOptionValue( 'page_transitions' ), array(\n\t\t\t\t\t\t\t\t\t'1',\n\t\t\t\t\t\t\t\t\t'2',\n\t\t\t\t\t\t\t\t\t'3',\n\t\t\t\t\t\t\t\t\t'4'\n\t\t\t\t\t\t\t\t) ) || in_array( $animation, array( \"updown\", \"fade\", \"updown_fade\", \"leftright\" ) ) ) {\n\t\t\t\t\t\t\t\tdo_action( 'bridge_qode_action_visual_composer_custom_shortcodce_css' );\n\t\t\t\t\t\t\t} ?>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add this code into header.php of your child theme. Please make all changes to the child theme files, and do &hellip; <a href=\"https:\/\/grooni.com\/docs\/groovy-menu\/theme-integration\/bridge-theme\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":2075,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2131"}],"collection":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/comments?post=2131"}],"version-history":[{"count":0,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2131\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/pages\/2075"}],"wp:attachment":[{"href":"https:\/\/grooni.com\/docs\/groovy-menu\/wp-json\/wp\/v2\/media?parent=2131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}