Header and Footer Menu disappears when searched through the Search Widget

Hi,

I am using a Vendor Store Search Widget to search items in the Vendor Store. When any item is searched, on the search results page, the vendor banner gets replaced with the site banner (slider) and the header and footer menu disappears. Please see attached. This issue does not happen with other themes like storefront and few more.
I earlier had an issue where the Store Banner would not even show on the Vendor store and it always displayed the site banner (slider). X-theme support provided the solution so that the banner started showing on the Vendor Page.

Thank you

Hi,

Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation.

Thank you.

Hi Paul,

This is the main site https://mangtum.com/
and this is the vendor shop page
https://mangtum.com/store/havasu-store/

I am facing another issue - when you click on the ratings on the banner of the store, it takes you to the ratings page. This page does not have the header, footer or the menu bar. I tested with other themes and they do not have this issue.
The Vendor page is https://mangtum.com/store/havasu-store/ and the ratings page when clicked on the stars of the banner is https://mangtum.com/store/havasu-store/ratings/

Thank you

Hi,

May I know how are you adding the banner.

We can tweak it a bit instead of adding redundant code.

Thanks

Hi Paul.

You can login to the website, mangtum.com, as a vendor, it takes you to the Vendor Pro Dashboard. On the Pro Dashboard, click Settings -> Branding, here you can upload the Banner. But even after uploading the banner it was not showing up on the store so x-theme provided me with some code which made it show.

Thanks

Hi There,

The main issue regarding search page seems to be coming fron Vendor Store. The moment I remove that part on the URL, the menu shows properly. See this: https://screencast-o-matic.com/watch/cbQoizIbbR
I understand you have an issue, unfortunately, how a third party plugins works, it’s features and it’s integration with the theme is outside the scope of our support. Yes, I do remember previously your issue about the vendor store banner issue, but then it is best to consult the plugin developer for all it’s integration. Most probably, like the store banner issue, there’s need to edit templates. Thank you for understanding.

Regarding the ratings, please try switching from child theme to main X theme just to check if this is not a result of customizaton. There’s no structure at all for the header, let’s see where this issue might come from.

Hi Lely,

When I switch to the X-theme, the vendor banner does not even show since all the steps (provided above) by x-theme support to show the banner is in the child theme. Since there is no banner, there is not ratings (the ratings are on the banner). But I opened directly thhe store ratings page [details=Summary]
https://mangtum.com/store/havasu-store/ratings/
[/details]
after switching to X-theme, it still does not show the header or anything.

Attached is the snapshots of the ratings page when I switch to storefront theme. Please see the header and menu is all there.

Thanks

Hi there,

Does the search issue is now fixed? That’s because the header and banner are now displaying upon search.

About that rating issue with no header and footer, it’s because header and footer are needed to be assigned to existing pages, and they page with identities.

Those rating pages are recognized as archive pages, and you can’t assign header and footer to archive pages, yet, unless they are set to global. You can verify that by viewing the source code in the browser <body class="archive post-type-archive ... >

What you need is to convert those pages into custom post type with custom permalinks. But I doubt it can be done easily since your vendor code is made that way (archives). You may want to consult it to a developer for further enhancement as I’m not really sure how their plugins works.

Example, the /store/havasu-store/ This is an archive page which is just okay, /store/{TERM NAME}/, this tells the Wordpress system that it’s an archive page with a term-name as identity. That’s how rewrites and permalinks works, but when it comes to this, store/havasu-store/ratings/, the format will be like this, /store/{TERM NAME}/{UNKNOWN SLUG}/, it becomes a new identity which Wordpress can’t understand (/ratings/ is never part of Wordpress permalink/rewrite system), so in the end, it became an archive page. A bit complex :slight_smile:

Thanks.

Thank you Rad for the detail reply, really appreciate it.

Regarding the search issue, it is not fixed. The problem occurs in the Vendor store search widget (not the main site search widget).

Regarding the header and footer not appearing on the ratings page - I switched to Storefront theme and there I can see that the header and footer still exists even though the source code says

<body class="archive post-type-archive post-type-archive-product..> So I am not sure if it is a problem with the plugin. Please see in my previous note, I have attached the snapshot of the ratings page after switching to Storefront theme. I even tried switching to some other themes like twenty fourteen and in all the themes the ratings page has the header and footer. <p>Thanks</p>

Hi Rad,

I have reported the issue of header and footer disappearing from the search results page, to the widget author. I would appreciate if you could only look into the issue of the header and footer not showing on the ratings page as this issue does not exist in other themes.

Thanks

Hi there,

The header builder and footer is only available on our theme. The assign capability of Pro theme’s header isn’t available on other themes as well. Hence, what you see on the other theme is the standard header.

I’ll continue checking, but I’ll also forward this to our developer too as this is 3rd party related.

Thanks.

Hi Rad,

Is there any update on why the Header and Footer disappears on the Ratings page for X-theme but it shows when I switch to other themes. I have provided the code which is responsible for showing the ratings page, if we can figure out something from here.

Thanks

Hi there,

It’s because of get_header( 'shop' ); and get_footer( 'shop' ); . It bypass the header structure from Pro, hence, it can’t display the header.

Try get_header() and get_footer() only, but I doubt it will work because this template isn’t the same from X’s template parts. I think this is also the reason why the banners appear within content on your other thread. Do they have available documentation online? They should make it usable without overriding the templates, like from woocommerce templates.

Thanks!

You are right get_header() and get_footer() did not work either. What kind of documentation are we looking at?

Hi there,

I’m not sure either, but I’m sure that the above code is a whole-single template while X has template parts (eg. by calling x_get_view() ). But since your rating pages are considered ARCHIVE pages, I can’t really tell how the vendors pro plugin is pulling that template. Each type has its corresponding templates, example, post has single.php, page has page.php, and archive has archive.php/category.php. Shouldn’t the rating page uses archive.php too since it’s an archive page? OR, maybe they are forcing the template using template_redirect()? You may have to contact the plugin author and have the template integrate with X template parts. This is not related to Woocommerce anymore since they are using their own templates (not the template that comes with Woocommerce).

Thanks.