akaalps
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
same problem here. Any updates?
Forum: Themes and Templates
In reply to: Archive page does not display the menuihi 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!
Forum: Themes and Templates
In reply to: Archive page does not display the menuiHere 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 -->
Forum: Themes and Templates
In reply to: Archive page does not display the menuiSorry WPyogi!!!
I will, I promise!Forum: Themes and Templates
In reply to: Archive page does not display the menuiHi,
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' );
Forum: Themes and Templates
In reply to: Archive page does not display the menui<?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="https://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link href='https://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' ); ?>
Viewing 6 replies - 1 through 6 (of 6 total)