trouble adding short-code for food items to a page

Support Area Forums Foxy trouble adding short-code for food items to a page

Viewing 11 posts - 1 through 11 (of 11 total)
URL to the page in question:
  • Author
    Posts
  • #8338
    Justin Mulder
    Participant

    Hi there, I am having a hard time adding the short codes for different menu groups to a page. It just gives me a “Page not found” error. I was using the short code from your help section and the slug from my food groups. Does it matter that the food group had another food group as a parent, i.e. do I need to reference the parent group too? I wouldn’t think so.

    Also my menu is quite intricate. It is for 3 venues, and under each venue there should be a drinks menu and a food menu. Then under the food menu there should be a breakfast, lunch and supper menu. Should I make those as individual pages or should I use the food menu this theme provides?

    Thanks

    #8340
    Bill Robbins
    Moderator

    Justin,

    Thank you for your business first of all. Let’s see if we can’t get your menus going.

    First, make sure that you’re running at least version 1.4.0 of Foxy. To do that, go to the Appearance section and select “Themes.” The version of the current theme will be listed below its title. We added the shortcode with version 1.4 so it’s available in pervious versions.

    Second, I would recommend on not using parent/child groups. They appear as an option along with the ordering box. The theme does support setting an order for the menu items, but isn’t made to take advantage of parent/child menu groups. Try making all of the menu groups on the parent level. If you need to, you can add menu items to more than one group so they are visible in multiple locations.

    If you still have trouble, let me know.

    Thanks again,
    Bill

    #8341
    Justin Mulder
    Participant

    Hi Bill I am using version 1.41 is this the right one to use [menu group=”burgers”] ? Because in May this year on the support forum you created a plugin for short codes and told the person to use this [menu-group taxonomy=”group-slug”]. I had no luck with that 2nd option.

    Anyway I changed the food groups no that they are all parents, but still no luck. This is what the slug looks like “white-wines-walmer”, is that alright?

    Ok I have just gotten the page to work, however there is a ton of space between each menu item. I have a page called Drinks. Now I want to have red wine, white wines, rose wines and beers listed under each heading on that Drinks page. I have made a food group for each of those kinds of drinks. I saw elsewhere on the forum that you have done this before https://support.organizedthemes.com/forums/topic/food-menu-not-appearing/ and this was the end result (which I would be happy with) http://sentidofunf.com.au/?page_id=49

    Can you help with that?

    Thanks I really appreciate your speedy response to my last question

    #8347
    Bill Robbins
    Moderator

    Justin,

    If I’m reading your post right, you’ve gotten the shortcode lists to work which is good. The page at http://sentidofunf.com.au/?page_id=49 is functional, but not very maintainable since the list choices are hard coded.

    If I was setting up a page like that using the shortcodes, here’s how I would do it.

    1. Name the page whatever you’d like the top heading to be. In the top of the main content area of the page, place any introductory text you need to have.
    2. Before the first shortcode, place a title. To create a title, switch from the visual editor to the HTML editor. Use this code snippet to create the title:

      Just change Menu Group Title with what you’d like it to say there.

    3. Then place the shortcode for the first menu section there.
    4. Repeat that for each menu group
    5. Publish/update your page.

    That should create a menu page like the one above. All the custom template actually does is fix those parts that the titles and shortcodes generate. This way you can change those out without having to write any code.

    If you have trouble, let me know. If you’d like to alter any spacing, send me a link to where you’re working with it and let me know what you’d like to change there.

    Thanks,
    Bill

    #8352
    Justin Mulder
    Participant

    Hi Bill, what an obvious and simple solution. You are right, I want something that is easy to maintain, not something hard coded. So thanks for that. However the spacing is still a problem and it also seems like the price is one line down. Here is the link http://www.angeloscafe.com/menu-2/walmer-menu/walmer-drinks/

    Also I am wanting to install breadcrumb menus via a plugin. I was looking to use Breadcrumb NavXT. Where should I put it? I have placed it in the page.php file after the title and the clear div.

    Thanks

    #8356
    Bill Robbins
    Moderator

    Justin,

    Thanks for the link. I believe I’ve spotted what’s causing the layout trouble. There is a bit of code that wraps most of our snippets in the website so they display like we want them too. It looks like this:

    Looking at your page, it appears that bit of code ended up at the top of your content which I believe is what’s causing the trouble.

    To fix it, edit your menu page and choose the HTML editor and delete that bit of code from the top of your page. That should fix it.


    For the breadcrumbs, you can place them at the top of page.php. You also might want to place them in the same spot on the taxonomy-menu-group.php page in case you ever need to use that.

    If you have any questions or trouble, let me know,
    Bill

    #8359
    Justin Mulder
    Participant

    Thanks Bill, I also really appreciate how pleasantly you respond, without making me feel like an idiot. Great customer support!

    One other thing I thought I was running Foxy version 1.4.1 but I am running 1.4.0. How do I go about updating the theme?

    Thanks

    #8360
    Bill Robbins
    Moderator

    Justin,

    I don’t have a built in theme update crafted just yet. I’ve been experimenting with one, but it’s not ready for release just yet.

    The only difference between 1.4.0 and 1.4.1 is support for a third level drop down in the navigation menu. If you don’t need that, then there’s no need to updated. If you need that, here’s how:

    1. Download the theme from our download section here and unzip the ZIP archive.
    2. Go to the Appearance section of your WordPress control panel and select sidebar.php
    3. Open up the folder that has the theme files you downloaded and find sidebar.php. Open it up in a plain text editor like Notepad or if you have a coding program that works great too.
    4. Copy the contents of the file you opened and replace the content of the sidebar.php file in the WordPress editor.
    5. Save your changes.
    6. Next do the same for the style.css file.

    That’s how to update the two files that changed to allow for the third level drop-downs.

    Bill

    #8361
    Justin Mulder
    Participant

    Thanks

    #8362
    Justin Mulder
    Participant

    Here’s a link so you can see it’s all good http://www.angeloscafe.com/menu-2/walmer-menu/walmer-drinks/

    #8363
    Bill Robbins
    Moderator

    That does look a lot better 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘trouble adding short-code for food items to a page’ is closed to new replies.