wizzud
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Conditional Menu DisplayUsing my suggestion should have resulted in a shortcode equivalent of
[cmwizard menu=329 branch=current start_at="1"/]However, seeing as you only have 2 levels in your menu, it makes no difference because the parent of a root level item is still that root level item. And with a setting of depth 2, in a 2-level menu, CMW will show both levels.
Using your settings, given that one branch of menu #329 looks like…
- Page A (at root level, level 1)
- subpage 1 (at level 2, immediate child of Page A)
- subpage 2 (at level 2, immediate child of Page A)
…then if Page A is current, CMW should show 2 levels of #329, starting with Page A‘s parent (there isn’t one so it uses Page A), ie. Page A, subpage 1 & subpage 2.
If subpage 1 is current, CMW should show 2 levels of #329, starting with subpage 1‘s parent (Page A), ie. Page A, subpage 1 & subpage 2. Likewise if subpage 2 is current.My understanding of your requirement is that CMW should show Page A, subpage 1 & subpage 2 – and only those items – if any one of those 3 pages is the current page?
Does the CMW widget Assist produce the output you are after, using the settings you have given?Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Conditional Menu DisplaySo it’s Branch=Current Item, Starting at 1 (root) (primary & secondary filters respectively)?
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Urgent! Help with plugin infoLet me put it this way :
IF you have a custom menu defined
AND you now want to show, somewhere on a page or in a sidebar, a menu that (for example) only contains the top level items of that custom menu
THEN Yes, CMW will do that for you.CMW does not affect any other menus, it merely filters the items of its own configured custom menu according to the options set (either in the widget or the shortcode).
If you need CMW to change the behaviour of something that is already producing menus throughout your site, then No, it won’t/can’t do that.
Setting to CMW to only (and always) show the top level items of a custom menu simply requires you to select the custom menu, and set For Depth=1 in the Secondary Filter section (assuming you leave all other settings alone, ie. unchanged from their default).
Placing CMW in a sidebar : just create an instance of the widget in the appropriate widget area.
Placing CMW within a post’s content : use the CMW shortcode (which you can produce using a widget instance’s Assist, and copy-paste into content).
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Horizontal menuCan I use this plugin to show custom menu on footer widget area?
Yes, just drag a new instance into the widget area and configure it.
Horizontal menu
Styling and presentation of the menu is entirely down to your theme. If the theme provides a class that transforms an unordered list (element UL) into a horizontal presentation then that class can be applied to the CMW output as one of the options. Otherwise, you will need to add some CSS rules yourself. If you search for something like ‘CMW horizontal’ you might find some hints?
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] uh heiracy?Good.
You might find this support thread useful?
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] uh heiracy?Add in
siblings=1(Branch Siblings checked) – gives you siblings of current item – andancestor_siblings=-1(Siblings -1 level (parent)) – gives you siblings of the current item’s parent.You should now have (if the current item is in the menu) :
- current item and its siblings (Branch Current Item & Branch Siblings checked)
- immediate children of current item (For Depth 2)
- current item’s ancestors back to root (include Branch Ancestors to level 1 (root))
- siblings of the current item’s parent (…with Siblings -1 level (parent))
- all Level 1 & Level 2 items (include Level 2 and above)
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] uh heiracy?Branch = Current Item, For Depth = 2 (ie. current item + immediate children); include Branch Ancestors to Level 1 (root), and Level 2 and above.
Shortcode resembles :
[cmwizard menu=NN branch=current depth=2 ancestors=1 include_level="2-"/]Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Menu output verticalCMW does not provide a specific option to make a menu display horizontally. Styling of the menu is down to your theme: if your theme has a class that sets an unordered list (UL element) to show horizontally, then you can apply that class via the CMW options; otherwise, you will need to add the appropriate CSS rules to your theme yourself.
You might like to check out this thread? There are probably a couple of others too, if you search WordPress for something like “cmw horizontal”.
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Hide children which are not currentYes.
Equivalent shortcode resembles…
[cmwizard menu=N branch=current depth=1 include_level="1" siblings=1/]If you want the root items displayed even when the current page is not one of the pages contained within the menu then use an Alternative.
Equivalent shortcode resembles…
[cmwizard menu=N branch=current depth=1 include_level="1" siblings=1 alternative="no-current,menu"]depth=1[/cmwizard]Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Menu not showing on some pagesNo problem. Glad you’re sorted!
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Menu not showing on some pagesIf I look at the sidebar menu on the Facilities Department page, there are a number of items – Administration, Business Office, Human Resources – which have links like
.../?page_id=nnnninstead of fancy links. Clicking any one of those 3 sidebar links gets me to a page that doesn’t have a sidebar (such as the Business Office page you mention).May I suggest that you modify those links in your menu structure so that the actual link is a fancy URL, not a
?page_idURL, and see if that solves your problem?Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Dropdowns OverlappingI’m sorry. Fitness Center is a paid-for theme so I can’t just download it a take a look. And even if I could, I’m not in a position to be able to do anything about changing it.
To tweak a theme you really need to be running a child theme, otherwise any changes you make to the main theme are lost whenever that theme gets an update, and you have to re-apply them. That would be the first thing to ask your theme provider : How do I run a child theme?
Once you a running a child of Fitness Center then you can start playing with the CSS – using any decent modern browser’s Developer capabilities. Also, you might then be able to do something about the nav walker that is getting in CMW’s way, but that very much depends on how it is implemented and where/if it is used.
I’m sorry but No. CMW only filters existing menu items, it does not modify them.
If it were me, I would look at this slightly differently …
You are currently trying to modify a custom menu item’s target URL on-the-fly (ie. at runtime) so as to get the same menu item to load a different page/post depending on the date.
However, I would call one page and get that page to include different content (ie. another post) depending on the date.For example :
Let’s assume that the slugs of your daily lessons are something along the lines of daily-lesson-1, daily-lesson-2, daily-lesson-3, etc, where the number is the day-of-the-year (one-based, 1 thru 366 – leap year?).
Using plugins Post Snippets and Include (there are no doubt other alternatives available!)…
– set up a new page, “Today’s Lesson”
– add that page to your menu
– set up a Post Snippet as a shortcode, with PHP code that constructs and echoes an Include shortcode to bring in the relevant daily lesson
– put the Post Snippet shortcode into the Today’s Lesson page, along with whatever other text you might want, such as “Here’s today’s lesson…”You might call the Post Snippet todayslesson, and the PHP code could be something like
echo '[include slug="daily-lesson-' . (date('z') + 1) . '"/]';
with the ‘Shortcode’ and ‘PHP Code’ checkboxes checked.
The content of the Today’s Lesson page might then beHere's today's lesson... [todayslesson/] See you tomorrow!I hope that helps.
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Dropdowns OverlappingI’m very sorry but the styling of the menu is down to your theme (or possibly some other menu-based plugin, but the theme is most likely).
From what I can see I’m guessing that your FitnessCenter theme – which appears to be Bootstrap-based – has implemented a Nav Menu Walker that is preventing CMW’s walker from running (none of CMW’s classes have been applied) … this means that it is unlikely that CMW is filtering correctly, if at all.
Apart from that, your theme has some CSS styling in place that sets very high z-index values on the menu items – higher than the bootstrap CSS. If I remove that high z-index then the sub-menu appears above the root-level items.
However, your theme also sets display as inline-block on the sub menu items, which doesn’t help the layout of the sub-menu items (short items appear beside each other in varying size blocks), and a max-width on the ULs, combined with bootstrap’s no-wrap, means that long items overflow their container. Added to which the text colour (bootstrap’s) of the sub menu items means the text is almost invisible against the background (your theme’s) until you actually hover on the item’s link.I appreciate that you may not find this particularly helpful, but there’s not a lot I can do about it. If you can’t sort the CSS out yourself (preferably using a child theme, if you’re not already), perhaps you need to consult the theme providers? I’m very sorry, but even if CMW was allowed to run properly, it still doesn’t provide any styling or javascript … for precisely this reason. And, given that CMW is being scuppered, it might be better to just remove it … maybe your theme provides a suitable alternative?
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] sibling, branch, ancestor…Can you set start_at=”2″ (assuming that your sub-pages are at level 2)?