• Resolved alederodesign

    (@alederodesign)


    Hello,
    I would like to show path to go back to the first level menu, also when I’m inside the subcategory.

    Example: if I have this menù:

    1) Category
    1.a) subcategory
    1.b) subcategory
    1.c) subcategory

    So when I’m in the Category page i see all the subcategory path, but when I’m in 1.c) subcategory i don’t see any path to go back to my Category.
    How to show it?

    Thank you

    https://wordpress.org/plugins/custom-menu-wizard/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author wizzud

    (@wizzud)

    Maybe, under Inclusions, set Branch Ancestors : to level 1 (root) ?

    Thread Starter alederodesign

    (@alederodesign)

    thank you. If i only set Brach Ancestors to level 1 (root) nothing happens.

    Plugin Author wizzud

    (@wizzud)

    Do you have a web-accessible site I can look at to see this happening?
    What is the shortcode equivalent of your options?

    Thread Starter alederodesign

    (@alederodesign)

    Yes the website it’s online. The page where i put the menù is this one: http://www.alesitiprova.it/particolari-dwg/
    Here you can see the whole menù.
    The shortcode i have used until now is the simple one: [cmwizard menu=429/] because the only style i need is the path of the subcategory that i need to reach the main category.

    Thank you very much for your help

    Plugin Author wizzud

    (@wizzud)

    I’m sorry but I’m getting a bit lost. I need to take a step back.

    From the URL above I can see that you have a WordPress “page” whose content contains a CMW shortcode : that shortcode displays one specific menu (#429) in full, and that menu contains only “category” type menu items.
    If I relate that menu back to your original post then you have a menu that begins…

    • Acciaio Nodi [= 1) Category]
    • Altri [= 1.a) subcategory]
    • Pilastri e Fondazioni [= 1.b) subcategory]
    • Pilastri e Travi [= 1.c) subcategory]

    In your original post you said…

    when I’m in the Category page i see all the subcategory path

    …so I’m assuming that when I navigate to Acciaio Nodi then I should see, somewhere on the page, Altri, Pilastri e Fondazioni and Pilastri e Travi as part of a CMW menu. But I don’t see that!
    None of the [sub-]category pages in that menu (which are “archive” type pages, as you’d expect) have any CMW instance on them. I was expecting to see a CMW widget somewhere? Probably in the sidebar?

    So, when you navigate to any category page, how and where are you intending to output (all or part of) that menu of categories (#429)?

    On any [sub-]category page that has a corresponding item in your menu, I would expect to see a CMW widget in the sidebar, for menu #429, that shows (at least) any child items of the current menu item, plus all ancestors of the current menu item. Is that not what you were originally asking about?

    If I’ve totally misunderstood your query then I apologise, but at the moment I’m a wee bit confused.

    Thread Starter alederodesign

    (@alederodesign)

    Sorry Wizzud,
    for sure you are a bit lost because of my not perfect english. I’ll try to explain well what i need.
    As you have written:

    “From the URL above I can see that you have a WordPress “page” whose content contains a CMW shortcode : that shortcode displays one specific menu (#429) in full, and that menu contains only “category” type menu items.”

    THIS IS CORRECT. This is what i want to show in the page and this is ok.
    Now what i would like to improve is when i enter in the page category and I see only the post that relates to that category. I don’t see any path ( as i have written above.. sorry) so as you have correctly written:

    “When I’m in Acciaio Nodi (page) then I should see, somewhere on the page, Altri, Pilastri e Fondazioni and Pilastri e Travi as part of a CMW menu.”…..
    NOW THIS IS NOT HAPPENING!! IS THIS POSSIBLE?

    I have first created a widget and then i canceled the widget because the customer don’t want the widget in the sidebar. Is this a problem? it is not correct?

    I only want the menù in the page as is it now, but what i want also is that when someone enter in the “acciaio nodi category” knows that there are other subcategory related to the main category through an items path. Is this point clear? I hope so.

    Plugin Author wizzud

    (@wizzud)

    Okay. Seems like you have 2 questions…

    1. Can I use CMW to show the current menu item, with its children and its ancestors?

    Yes, you can (Branch = Current Item, and Ancestors back to root).

    2. How and where do I put the CMW instance on a category page?

    My first advice would be to put the CMW widget into a widget area, such as a sidebar. That’s how CMW was originally intended to be used, and widget areas can be dynamically controlled (as in show or don’t show) using other plugins. Also, themes often provide styling for menus within their sidebars.

    If you don’t have a suitable widget area, or can’t use the widget areas you have (for whatever reason) then consider creating one you can use. If you don’t have the skill, or inclination, to modify your theme, then there are various plugins that provide adhoc widget areas.

    If you can’t use the CMW as a widget then you might be able to use it as a shortcode … if you have somewhere to place the shortocde. Shortcodes can be placed anywhere that your theme will handle. This usually means a post’s content, and often its excerpt. Text areas in widgets are quite often enabled for shortcode usage as well. And you can always code it directly (carefully!) into a theme’s template file. There are all sorts of places that a shortcode could be placed – such as Category Description – but whether or not it gets recognised, resolved, and output to the webpage, is down to your theme (and possibly other plugins).

    On some of your category pages, you already have something that seems to display a list (UL.subcat) of child categories(?). I have no idea how that list is produced.
    Since a category page does not have its own post content – because it displays excerpts from a number of posts – you’re going to have to find some other way of getting the shortcode onto the webpage. How you go about it depends on where you want the output to appear. If you want the CMW instance to appear in place of the UL.subcat that some of the category pages currently show, then I suspect/guess that you will have to edit a theme file (possibly a template file, or you might be able to hook into an action/filter from the functions file). Personally I wouldn’t try replacing UL.subcat, I’d just remove it and place CMW somewhere better suited and more easily stylable … but then it’s not my site.

    So, bottom line is : Yes, CMW is perfectly capable of producing the filtered menu that you require. However, placement of the CMW instance within your webpage – whatever page that might be – requires a decision as to where you want it, possibly governed by your ability to get it there. That’s down to you, your client, your theme, and whatever other plugins you might find useful.

    Thread Starter alederodesign

    (@alederodesign)

    Thank you for your answer.

    Can you just tell me if is possible to show only the first category ( first level) and by clicking on it it’s possible to show the sub-categories? ( like drop down menù but clicking on it not with mouseover)

    Plugin Author wizzud

    (@wizzud)

    Yes, it is.
    You might find this thread useful? … https://wordpress.org/support/topic/collapse-and-expand?replies=14

    Thread Starter alederodesign

    (@alederodesign)

    ok thank you very much it helped a lot 😉

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to show path when you go back to the first level’ is closed to new replies.