Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
901 stars 357 forks source link

Canape: Menu Images on Homepage don’t link to Related Pages #630

Open AMcGrady opened 5 years ago

AMcGrady commented 5 years ago

Steps to replicate

In wp-admin click Food Menus → Menu Sections to create sections like ‘Appetizers’ or ‘Main Courses’ and assign them titles and descriptions.

Click Add One Item or Add Many Items to add individual dishes to your menu. Changing the order of items in the menu is as easy as dragging and dropping them up and down.

Click on My Site → Pages to create a new page and assign the Menu template to it. Your menu sections and the menu items within them will automatically show up on that page.

Visit Customize → Theme Options and choose ‘Front Page.’

For each Featured Menu Section in the panel, choose an existing Menu Section and upload an image.

Save your changes and check your homepage – it will display your chosen image as well as your section description, if you’ve added one.

Clicking on the images on the homepage should now should take you to the related Menu Items page.

Result

Clicking on the images on the homepage leads to a "Oops. The page could not be found"message.

Expected

Expected the Menu Section Pages to be found and displayed.

I'm not sure if this error is universal or specific to site https://pizzeriacomparsa.com.

laurelfulford commented 5 years ago

Thanks for the report, @AMcGrady!

I went looking for a weird discussion I had about this site and Canape a while ago, and found there was another one yesterday, too!

p1550162274121100-slack-themes p1550619034228800-slack-themes

This seems site-specific to me, and possibly more to do with the Nova Menu than the theme, but leaving here at least until we have more information.

Was also posted here - more info may come up there, too: p2EDhh-Fv-p2

alaczek commented 5 years ago

Yep, I concur that this is probably a weird issue on the intersection of Food Menus CPT and this particular site.

AMcGrady commented 5 years ago

With suspicion that this is "a weird issue on the intersection of Food Menus CPT and this particular site." what do you recommend as the next step?

My thoughts are to either have the user delete and recreate their Menu in wp-admin or to move this post to JPOP to investigate the Food Menus CPT side of things.

Thoughts?

alaczek commented 5 years ago

Yep, I think trying to re-create the food menus from wp-admin (and maybe make sure there are no posts/pages with the same title just to be safe) is a good suggestion. If the issue still persists after, move to JPOP to investigate.

Were you able to replicate the issue on your own test site?

drwpcom commented 5 years ago

The issue seems to be that the home page has the menu template. Creating a new page to be the home page (not with the menu template) resolves the issue. Can someone please confirm that the theme requires a different page to be the menu page and the home page? It seems to make sense that one page can't be both.

I will reply to the user to confirm that the issue is resolved..

eoinsav commented 5 years ago

Just noting here for the sake of posterity that I had the same issue in #10997493-hc (follow-up here: #1877425-zen). The pages for the menu sections and items were not loading until I deleted the homepage. I have no idea why.

tbradsha commented 5 years ago

Another here: #7719376-hc, #1981678-zen

I created a new page, switched it to the new homepage, and it worked as expected. I then switched it back to the old page, and the links worked again, so I was able to delete the new page and keep the old one.

samiff commented 5 years ago

Like above, only way I could get this working was to unset the static homepage in Customize > Homepage Settings (which was using the default page template), and then set the homepage back.

12684350-hc

khristiansnyder commented 5 years ago

Same as above. Switching to a different homepage and then back again helps bring back the food items.

3743552-hc

sophiegyo commented 3 years ago

I experienced this in 30188421-hc.

I found this GH issue, and tested un-setting, then re-setting the static front page. This resolved the issue and now when I click on featured menu sections on the front page, they load correctly.

github-actions[bot] commented 2 years ago

As a part of this repository’s maintenance, this issue is being marked as stale due to inactivity. Please feel free to comment on it in case we missed something.

marcuswisecaesar commented 2 years ago

Experienced this here - 36943138-hc (follow-up 5560046-zen)

Found this GH issue, tested un-setting, then reset the static front page. Nothing happened. Clicked on Appearance → Menus and was shown the Food Menu item in the WP Admin menu.

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.

happychait commented 11 months ago

7393664-zen

Fixed by switching the home page and switching it back to the original home page.

ezebecke commented 8 months ago

7865078-zen fixed homepage featured sections with mentioned workaround