Passer la navigation

[Résolu] Top main menu in WP Archive page missing

This support ticket is created Il y a 1 mois et 1 semaine. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 6 réponses, a 1 voix.

Dernière mise à jour par nicolaS-3 Il y a 1 mois.

Assisté par: Minesh.

Auteur
Publications
#2811919
missing-menu.jpg

Hi all,
I have two WP archives called Blog and Market both customized with Toolset. The main menu is missing in the Market archive, while it correctly appears in the Blog archive (and all other pages of the site). At first I thought it could be a theme issue because in the Blog page the kadence_customizer_header_bottom element is correctly rendered with all the sub-elements including the navigation, while in the Market archive the kadence_customizer_header_bottom element is replaced by the kadence_customizer_header_MAIN element that doesn't include the navigation (see picture). So I asked Kadence support and they found that the issue remains even changing the theme.
Then I started deactivating/reactivating all plugins and the menu sometimes came back deactivating Toolset Blocks or Types, but not always. It's difficult to say because when those are deactivated the Homepage is shown at those links instead of the archives. I also deleted the Market (classified) archive and created a new one from scratch and the issue happens also in the new empty archive. Now I have restored the site from a previous backup. Any clue about what can cause this issue ? thanks

Kind regards
Nicola

#2812024

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you open similar ticket before:
- https://toolset.com/forums/topic/top-main-menu-in-wp-archive-pages-hidden/

As you may already know, Toolset do not control menu, sidebars, header, footer. Toolset only replaces the content (body) area until and unless you are using the Toolset compatible theme that offers luxury to control the limited theme options.

#2812334

Hello Minesh,
I understand that. But is there a way that you know to show the archive page (even without content) after deactivating Types ? I can't tell if the menu appears or not because instead of the archive the homepage appears and the customizer doesn't show the archives settings.
thanks
Regards
Nicola

#2812357

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - you can crate views, archive either using Blocks or Views plugin.

If you do not want to use Toolset Blocks/Views plugin to create your archive, you can create archive for your post type using your theme's PHP template. So, you will have to create the archive-{your-post-type-slug}.php file within your theme.

Please check the following Doc:
- https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/#custom-post-type-templates

#2812836

Hello Minesh,
following your indications I have recreated the archive as page + view and everything works fine, also the menu appears now. Although when clicking on the post title with link to open the single CT one of the posts listed by the view I get the "page not found" message. This also happens if I click on View in the admin post list ! even though the link seems correct ... what can it be ?
Another
thanks
Regards
Nicola

#2812898

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

That is really strange.

Can you please share problem URL and admin access details and let me check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I have set the next reply to private which means only you and I have access to it.

#2812926

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Well - WordPress works with unique slug and if market is not working that means that slug must be either occupied by any post, term or any other entity you created.

I checked and it works without any issue when I click on the any specific item on market3 page. It redirect me on single classified page.

#2813082

Hello Minesh,
I am closing this ticket although it remains unclear why:
- the menu disappeared in the previous archive. I solved this issue creating a page instead of using an archive.
- the page cannot be named market even though I checked there are no other elements in the db called market. To solve the issue I just gave the page a different slug, but ....
Thanks anyways
Regards
Nicola