Hallo,
ich habe noch eine Seite in der ich gerne das Quad Menü Pro Integrieren möchte.. meine Header.php sieht wie folgt aus:
PHP
<?php
/**
* The template for displaying header
*
* @author Vendidero
* @version 1.0.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> <?php vp_html_tag_schema(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<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>
<body <?php body_class(); ?>>
<header id="hmain">
<div id="hbar">
<div class="container container-nomargin">
<div class="grid grid-3">
<div class="column">
<p><?php echo do_shortcode( vp_get_option( 'features_1' ) );?></p>
</div>
<div class="column align-center">
<p><?php echo do_shortcode( vp_get_option( 'features_2' ) );?></p>
</div>
<div class="column align-right">
<p><?php echo do_shortcode( vp_get_option( 'features_3' ) );?></p>
</div>
</div>
</div>
</div>
<?php echo do_shortcode( '[hmenu id=1]' ) ?> // DAS IST MEIN AKTUELLES MENÜ
</nav>
</div>
<div class="header-inner">
<div class="container">
<div class="widgets" id="widgets-header">
<div class="grid grid-<?php echo vendipro()->widgets->get_widget_count( 'vp_header' ) + 2; ?>">
<?php dynamic_sidebar( 'vp_header' ); ?>
</div>
</div>
</div>
</div>
</header>
<div class="container" id="main-wrapper">
<?php
if ( vp_get_option( 'blog_featured_header_image' ) && is_singular( array( 'post', 'page' ) ) && has_post_thumbnail( $post->ID ) &&
( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
$image[1] >= HEADER_IMAGE_WIDTH ) :
?>
<div class="featured-image"><?php echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); ?></div>
<?php endif; ?>
Alles anzeigen
der Link zur Homepage wo mir beschrieben wird wie ich es Integrieren soll ist folgender:
https://quadmenu.com/documentation/integration/manual/
dort steht noch das ich den code den ich benötige im Menü meines Plugins finde.. ist folgender:
PHP
Manual Integration
This methods allows you to integrate QuadMenu into your theme.
[quadmenu theme_location="header-main"]
Simply copy the generated shortcode and paste it where you would like the menu to appear.
<?php quadmenu(array("theme_location" => "header-main", "theme" => "default_theme")); ?>
Simply copy the generated PHP function code and paste it into the appropriate template in your theme.
Alles anzeigen
nun ist die Frage wie ich es richtig Integrieren kann..
Hoffe mir kann jemand helfen.
LG