Food menu not appearing?
Support Area › Forums › Foxy › Food menu not appearing?
- This topic has 8 replies, 2 voices, and was last updated 13 years, 2 months ago by
Bill Robbins.
-
AuthorPosts
-
September 27, 2012 at 23:35 #7719
Sentido Funf
ParticipantHey guys,
I’m trying to organise my food menu groups and food items through my home page sidebar navigation. When I go to Appearance>Menu, my only options to add to a new menu are:
Custom Links
Pages
CategoriesHow do I find the food menu groups and food items that I have already published?
Thanks,
FrancisSeptember 28, 2012 at 09:04 #7720Bill Robbins
ParticipantFancis,
Thank you for your business and great question. WordPress sometimes hids the menu groups in the navigation builder.
To make it visible, click “screen options” in your navigation builder and check the box next to “menu groups” and any other sections you’d like to make visible. That will make the menu section visible so you can add it.
If you have any trouble, let me know.
Enjoy your weekend,
BillSeptember 28, 2012 at 10:06 #7722Sentido Funf
ParticipantGreat thanks Bill,
I have the menu groups working now but I’m wondering if there is a way to put multiple menu groups on the one page.
I have a short menu to work with and want it to all load on the one page, reading something like:
BURGERS
Cheese burger
w/ fries
Fat Eddy
w/ fries and saladSHARED
Buffalo wings
w/ Ranch
Wedges
w/ Sour CreamMAINS
Chicken Parmigiana
w/ salad
BEEF AND MUSHROOM PIE
w/ friesOf course there are more items under each menu heading but you get the idea. Is this possible?
September 28, 2012 at 10:19 #7723Bill Robbins
ParticipantIt is possible to do that. The easiest option is to add your menu items to a master group that has your entire menu in it, and then add that to your navigation. The only catch there is you won’t have the headings separating the sections.
If you do want to have the headings in between each group, that can be done. In order to do that, I’ll need to create a custom page template for you.
Just send me the names of each menu group you’d like to add and I’ll use those to create the page template for you.
Bill
September 28, 2012 at 10:29 #7724Sentido Funf
ParticipantThat would be fantastic Bill!
I would like simply ‘Menu’ to appear in the side bar navigation. After clicking into the menu I would like the following three headings (which I currently have set as my menu groups) all showing on the same page with their individual food items underneath:
TO SHARE
BURGERS
MEALS
If you need any more info just let me know.
Thanks again,
FrancisSeptember 28, 2012 at 10:40 #7725Bill Robbins
ParticipantFrancis,
No problem. I’ll set it up for you and let you know when it’s ready. Most likely it will be this evening to give you a time table.
Bill
September 29, 2012 at 09:50 #7730Bill Robbins
ParticipantFrancis,
Ok, here’s what you’ll need to do to create the template.
- Go to the Plugins section of your WordPress control panel and select “Add New.”
- Search for “WP Editor” and install/activate the plugin.
- Next open up a text editor on your computer. You can use Notepad on a PC or Textedit on a Mac.
- Create a new file called page-menu.php and use this code for the content:
- Save your changes.
- Next go to the Appearance section in your WordPress control panel and select “Theme Editor.”
- In the top right you’ll see an area labeled “upload files.” If you don’t see it, go to WP Editor at the bottom of your control panel menu and select “Theme Editor.” Make sure the checkbox next to “upload files” is checked.
- In the file upload area, choose the page-menu.php file you created earlier and upload it. It doesn’t need to go in a sub-directory.
- Next choose the style.css file from the list of files on your right and paste this at the very bottom:
.page-template-page-menu-php ul { margin-bottom: 20px; } - Save your changes.
- Next go to the “Pages” section of your WordPress control panel.
- Select “Add new” and create a new page.
- In the right hand column, you’ll see a box labeled “Page Attributes” with a drop-down menu called “Templates.”
- Choose “Menu” from the drop-down and publish your page.
- Add the new page to your navigation where you’d like it to be displayed.
That’s how you add in the new menu. I created a spot for three menu groups (To Start, Burgers, and Meals).
If you have any trouble, here’s what I would check first. The template is set to find your menu items based on what’s called the “slug” of the menu group. I assumed the slugs to be:
to-start, burgers, mealsbased on the names. If you don’t see your menu items, check the slugs by going to “Food” and selecting “Menu Groups.” There you can edit the slugs so they match the ones above.
Let me know if you run into any trouble or have any questions.
Thanks again and enjoy your weekend,
BillOctober 1, 2012 at 01:24 #7748Sentido Funf
ParticipantThanks a lot for that Bill, all worked perfectly.
The two other minor changes I wanted to make was:
– to have the info appear in the side bar that appears for menu groups (as oppose to generic pages).
– to put just one line of space between the last item in each displayed menu group and the title of the next.
You can see what I mean on the page: http://sentidofunf.com.au/?page_id=49
Also is there an easy way to change the order in which food items appear in each menu group?
Thanks again for smashing out all that code for me, great help!
Francis
October 1, 2012 at 08:48 #7752Bill Robbins
ParticipantFrancis,
Let’s see if we can’t get you straightened out:
1) You can use the menu sidebar area on the custom page. Here’s how:
- Go to the theme editor again, and select “sidebar” from the list of files on your right.
- Look for this spot:
elseif(is_tax( 'service-group' ) && is_active_sidebar('sidebar-services')) : dynamic_sidebar('sidebar-services'); - Create a new line above that and paste this:
elseif(is_page_template( 'page-menu.php' ) ) : dynamic_sidebar('sidebar-food'); - Save your changes.
That will let you use the menu sidebar on your new page, once you select the “Menu” template (see next point).
2) For the spacing, don’t forget to assign the menu template to your menu page. Since your page has the “name” menu it’s picking up the actual menu items, but not the extra styling you added in step 9 above. Make sure to set the page template and it should pick up that styling which will give you the space at the bottom of each menu group.
If you have any trouble or questions, just let me know,
Bill -
AuthorPosts
- The topic ‘Food menu not appearing?’ is closed to new replies.
