Viewing 11 replies - 1 through 11 (of 11 total)
  • paste your header.php code then i ll find the solution

    Thread Starter akaalps

    (@akaalps)

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<meta http-equiv="X-UA-Compatible" content="IE=10" />
    	<title><?php wp_title( '|', true, 'right' ); ?></title>
    	<link rel="profile" href="http://gmpg.org/xfn/11" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
        <link href='http://fonts.googleapis.com/css?family=Dosis:400,200,300,500,600,700,800|Pacifico|Average|Roboto+Condensed:300,400' rel='stylesheet' type='text/css'>
    
    	<?php wp_head(); ?>
    
    </head>
    
    <body <?php body_class(); ?>>
    
        <?php
    	  if (ICL_LANGUAGE_CODE == 'it') {
    
    	  } elseif (ICL_LANGUAGE_CODE == 'id') {
    
    	  }
    	?>
    
    <?php do_action('vantage_before_page_wrapper') ?>
    
    <div id="page-wrapper">
    
    	<?php do_action( 'vantage_before_masthead' ); ?>
    
    		<?php get_template_part( 'parts/masthead', apply_filters( 'vantage_masthead_type', siteorigin_setting( 'layout_masthead' ) ) ); ?>
    
    	<?php do_action( 'vantage_after_masthead' ); ?>
    
    	<?php vantage_render_slider() ?>
    
    	<?php do_action( 'vantage_before_main_container' ); ?>
    
    	<div id="main" class="site-main">
    		<div class="full-container">
    			<?php do_action( 'vantage_main_top' ); ?>

    Ok can you please paste “parts/masthead.php” code aslo

    Please see the forum guidelines re: posting code –

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    If you are posting entire files, you need to use a pastebin.

    You’re also using the commercial version of Vantage theme so you may want to use the developer’s dedicated support channels – after all, you paid for it!

    http://codex.wordpress.org/Forum_Welcome#Commercial_Products

    Thread Starter akaalps

    (@akaalps)

    Hi,

    am using this code in functions.php.
    If i don’t use I do not see my taxonomies in the results, but the menu is visible…
    Any idea how to combine this code and show the menu too?

    Thank you!

    function namespace_add_custom_types( $query ) {
      if( is_category() || is_tag() ) {
        $query->set( 'post_type', array(
         'post', 'ansprechpartner',
    		));
    	  return $query;
    	}
    }
    add_filter( 'pre_get_posts', 'namespace_add_custom_types' );

    I fixed your code AGAIN – please see:

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    Use the code buttons to post code here – thanks!

    Thread Starter akaalps

    (@akaalps)

    Sorry WPyogi!!!
    I will, I promise!

    Thanks :)! Helps us and keeps your code from getting messed up!

    Thread Starter akaalps

    (@akaalps)

    Here is masthead.php

    <?php
    /**
     * Part Name: Default Masthead
     */
    ?>
    <header id="masthead" class="site-header" role="banner">
    
    	<div class="hgroup full-container">
    		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="logo"><?php vantage_display_logo(); ?></a>
    
    		<?php if( is_active_sidebar('sidebar-header') ) : ?>
    
    			<div id="header-sidebar">
    				<?php
    				// Display the header area sidebar, and tell mobile navigation that we can use menus in here
    				add_filter('siteorigin_mobilenav_is_valid', '__return_true');
    				dynamic_sidebar( 'sidebar-header' );
    				remove_filter('siteorigin_mobilenav_is_valid', '__return_true');
    				?>
    			</div>
    
    		<?php else : ?>
    
    			<div class="support-text">
    				<?php do_action('vantage_support_text'); ?>
    			</div>
    
    		<?php endif; ?>
    
    	</div><!-- .hgroup.full-container -->
    
    	<?php get_template_part( 'parts/menu', apply_filters( 'vantage_menu_type', siteorigin_setting( 'layout_menu' ) ) ); ?>
    
    </header><!-- #masthead .site-header -->
    Thread Starter akaalps

    (@akaalps)

    hi a2ztechnologies and WPyogi,

    fixed it by adding this code in functions.php

    function namespace_add_custom_types( $query ) {
      if( is_category() || is_tag() ) {
        $query->set( 'post_type', array(
         'page', 'nav_menu_item', 'ansprechpartner'
    		));
    	  return $query;
    	}
    }
    add_filter( 'pre_get_posts', 'namespace_add_custom_types' );

    thank you anyway for your feedback!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Archive page does not display the menui’ is closed to new replies.