Search results shows menu items.

Hi, I don’t believe this is really an issue with the Beaver Builder theme. I think it has more to do with my custom post that I created, but thought maybe someone could help me with my php.

I created a no header posts template like the pages no header/no footer template.

It looks great. example hhttp://www.tonycortes.com/web/maximum-success-achieved-steps/ but,
when I do a search it shows the menu in the search results excepts. like below.

Menu HOME ABOUT BLOG WORK WITH ME SUPPORT MAXIMUM SUCCESS IS ACHIEVED IN STEPSAll progress begins one step at a time.

Example of my search results page http://www.tonycortes.com/web/?s=success

Here is my post no header code.

<?php

/*
WP Post Template: No Header
*/

add_filter( ‘fl_topbar_enabled’, ‘__return_false’ );
add_filter( ‘fl_fixed_header_enabled’, ‘__return_false’ );
add_filter( ‘fl_header_enabled’, ‘__return_false’ );

get_header();

?>

<div class=“fl-content-full container”>
<div class=“row”>
<div class=“fl-content col-md-12”>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part(‘content’, ‘page’); ?>
<?php endwhile; endif; ?>
</div>
</div>
</div>

<?php get_footer(); ?>

Thanks for you help.

Tony Cortes

Hey Tony,

I believe you’re using the page builder to create your menu? The search page simply lists down the content of the pages that matches your search. For your case, since your menu is already part of the content, it gets listed down as well with its markup stripped.

You could try inserting those page builder generated content via action hooks and shortcodes. Check the thread below for more info.
http://forum.wpbeaverbuilder.com/support/q/custom-header-design/#post-111245

Ben

Hi Ben, Thank you. Just one question. Is there a shortcode for the menu? Thanks Tony

Hey Tony,

There isn’t a shortcode for the Menu module. But you can create a template out of the Menu module you’re using, and pull its contents via the shortcode. :slight_smile:

Ben