wizzud
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Menu not showing up in home pageOk.
1. What settings are you using? (The shortcode equivalent?)
2. Is there any page for which that CMW instance does display? And is it web-accessible, so I can take a look?
3. Is there more than one menu element in this custom menu that points to the Home Page?
4. If you set up a CMW widget with its default settings (for the custom menu in question) ie. Level 1 for unlimited Depth, does it display on the Home Page? And when you Inspect the menu element that points to the Home Page, does it show as being the current item (has a class of current-menu-item)?Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Menu not showing up in home pageWhen you’re showing the Home Page, then WordPress will mark any menu item whose URL points to that Home Page as being a “Current Item”. Obviously, if there are no menu items – on any menu that the Home Page is currently showing – that have the URL for the Home Page, then no items can be marked as “Current Item”.
So, first question would be : Does your menu contain an element that points to the Home Page?
If it doesn’t, and you have configured CMW for any sort of dependence on Current Item being present, then CMW will not be able to show the menu on the Home Page.
When using the assist, what menu element are you marking as representing the Current Item? If, on your frontend, you navigate to the actual page represented by that menu element, does CMW then display the menu?Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Show level only if it has childrenHi Shawn.
I think what you’re asking for is a sort of two-scenario case, as in : if current item is in the menu show this set of items; if it’s not, then show this other set of (possibly) completely different items.Unfortunately, CWM does not currently provide that dual-scenario functionality … although I must admit that I have started looking into it. I have 2 possibilities :
a. create a new Standby section, which has limited filters and only comes into effect when the main Filters fail to return any items, or
b. create a specific Current Item sub-section within the main Filters section.
Both approaches add further complexity to the settings, which I’m not sure that CMW (or more specifically, it’s users) can take, and neither is currently particularly clear in terms of what it provides or when it provides it. If I can keep it logical and ergonomically sound then I’ll seriously consider adding it, but I haven’t made my mind up yet.
Sorry.Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Horizontal menuNo problem, and I’m glad your theme is making things easier for you.
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Horizontal menu…where would I put this? Inside the short code?
No, CMW does not provide any facility for specifying additional CSS rules. As to where you should put it … well, there are a number of possibilities:
- your theme may provide the facility for you to enter your own CSS rules as part of its custom settings; some themes do, most don’t
- if you are running a child theme, then you could edit that child’s stylesheet and enter the rules there
- there are plugins such as the CSS & Javascript Toolbox (and undoubtedly others similar) that provide the ability to enter your own CSS rules, above and beyond those of your theme
- lastly, you could modify your theme’s stylesheet, but I do not recommend this because any update to the theme would wipe out your customisations!
I assume 24 is the <id-of-top> referred to…
No, it isn’t. The
24is the internal-to-WordPress id of the custom menu that the widget is configured to filter; this is not the same as the id attribute that WordPress assigns to the UL (or OL in your case) HTML element that gets output to the page. WordPress assigns a unique id ofmenu-{menu slug}[-#], where{menu slug}is the “name” of the custom menu being used, and[-#]is an optional, incremental number that ensures uniqueness when there are multiple occurrences of similar items being output on the one page. So, if your custom menu is called, say, “my custom menu”, then the first occurrence might have an id ofmenu-my-custom-menu, the 2nd would bemenu-my-custom-menu-1, and the 3rd would bemenu-my-custom-menu-2, etc.
There is a potential problem with using the WordPress-generated id though : if you subsequently insert another instance in front your original instance – the one you provide all the custom styling for – then the original instance (now the 2nd instance) will change its id frommenu-my-custom-menutomenu-my-custom-menu-1… which will throw out your styling. You might be better off providing your own unique class for either the widget itself, the container, or the list element (UL or OL), via the CMW settings. (Using a class rather than an id makes your CSS styles re-usable for other instances).All the main browsers nowadays provide Developer facilities which enable you to play around with a page’s HTML & styling (to some degree, and with varying ease), and I would suggest that that is the place to start (personally, I could not do without Firefox’s Firebug extension). You can try out different CSS rules without having to code anything into WordPress, and only when you are happy with the results do you then have to make a decision as to how to implement them.
No problem.
I don’t mind issues that get resolved before I even know about them.
Glad you’re sorted.Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Extra Anchor Tags Being PlacedNo problem.
Seems like you’ve definitely got some rogue javascript floating round somewhere, and I hope you manage to track it down and fix it.
I know your problem isn’t quite fixed yet, but I’m going to mark this as resolved since it appears not be related to CMW.
Good luck…Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Extra Anchor Tags Being PlacedUnfortunately, CMW has very little to do with the actual construction of the HTML used in the final output; it basically restructures the original list of menu items, and leaves HTML production to WordPress’s own code (there are a couple of minor exceptions, but not for the settings you have, and definitely not on a per-item basis). This means that the likelihood is that there is some other party (plugin or theme) hooking in and changing something…
a. Is there anything special about the menu item(s) that elicit this behaviour? Ie. are they anything besides a simple page or post?
The fact that the reported behaviour appears to be very selective – ie. it only happens when WordPress has determined that one particular menu item is the “current item” according to the page currently being visited – would seem to indicate that there might be something a little bit “different” about that particular menu item … hence the question.b. Are there any other active plugins that might have any influence over menu output?
If there are, can they be temporarily deactivated to find out whether they are affecting the HTML output in these cases? There are plenty of hooks available to other plugins (including some provided by CMW itself) which enable them to modify the output of any menu.c. If you switch to TwentyFourteen theme, does the problem still occur?
This would rule out your theme as being the culprit (assuming you aren’t already using TwentyFourteen!).Without intending any offence, I’m going to assume that you used View Source to determine that the HTML was incorrect (as opposed to any sort of DOM inspector, like Firebug), so javascript can be ruled out?
Hi.
Unfortunately, I suspect that what you’re asking is not currently possible with CMW.According to
…all parent pages display all the time…
I believe you would like the root(?) items to be permanently shown – regardless of the current page/item. This is certainly possible with CMW, using the
Leveloption, with aFor Depth.
However, you also want conditional display of further items depending on whether the current item then happens to fall within scope of the displayed root items, and this is not available with theLeveloption.The only conditionality available with the
LevelandItemsprimary options is a boolean (on/off) check for the existence of current item within scope; conditional modification of the specified subset items is not an option. If this is what is required, the only way to achieve it with CMW is to set up the entire permanent subset of items, and then use CSS to conditionally hide any sub-items unless they fall on the current path or below the current item.If I have made a wrong assumption about the meaning of “display all the time”, then I apologise. (For example, if the widget was required to only produce output when current item was within scope of the root items, then Yes, that is achievable with CMW; but your post doesn’t read like that.)
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Not compatible with WPMLRight, here’s what I’ve managed to find out so far…
CMS appears to work fine with WPML if WPML is “correctly”(?) set up.
To elaborate :
In WPML (WP 3.9.1, TwentyFourteen theme, with only WPML plugins and CMW activated) I added a number of pages (6) in English (default language) and then managed to set up linked translated pages in French (but not without a great deal of aggravation!). Then I set up a custom menu of my English pages, Saved it, ran WPML’s Synchronize menus between languages (a couple of times, because I missed checking some boxes!), and Saved the menu once again for good measure (I had begun to distrust WPML at this point).
I added a CMW instance into the Primary Sidebar and simply Saved it (no change of configuration whatsoever, which should then produce exactly the same output as WP’s own Custom Menu widget). Shortcode equivalent :[cmwizard menu=3/].
Switching to the frontend, the CMW widget showed up with the English pages. I used a WPML language switcher to switch to French, and CMW also switched to the French pages.
I then went back and re-configured the CMW instance to Current Branch, with Title from Current Root ([cmwizard menu=3 branch=current title_from="current-root"/]) which once again behaved exactly as expected at the front end (switching between English-French pages, and also changing the Title as appropriate).
I tried a few other configurations of CMW and I couldn’t get it to break (even specifying my own Title in English was handled by adding an appropriate String Translation to WPML).Conclusion : Although WPML seems to have a few problems with Pages and their translations, once it’s set up with correctly synched menus I can’t honestly see any problem with CMW. Admittedly, I have not had time to test all possible custom menu items, nor have I fully investigated alternatives to anything other than what might appear to be a perfect(?) WPML setup. (Frankly, I had enough problems just getting my 6 pages set up, and I had to complete deactivate WPML once through the process in order to get rid of some rogue pages!)
Anyway, I’m not sure that this is going to help you very much, but I don’t know what else I can do to help you? …
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Not compatible with WPMLThank you for letting me know, and Yes, from what I have been able to determine from their documentation I suspect that you are correct in guessing that it’s probably something to do with the way menus are handled by WPML.
I am trying to get in touch with the WPML team to determine whether there’s anything I can do about it …Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Error: The plugin does not have a valid headerv3.0.3 of CMW plugin has just been released, and it will now activate straight after installation.
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Error: The plugin does not have a valid headerHi.
When you install CMW : instead of immediately activating it (from the update.php page), please return to the plugins page and activate from there.The problem is known to me, and it’s to do with the difference between how update determines the main plugin file versus how plugins determines it. I have a fix for this which will be released very shortly, but meantime please be assured that the main CMW file headers are intact, complete, and accurate.
Apologies for the hassle.
Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Dropdown OutputDamn. Typo : 4th line up from bottom,
%$1sshould be%1$s.
Sorry ’bout that.Forum: Plugins
In reply to: [Custom Menu Wizard Widget] Dropdown OutputSorry, I was writing while you had solved …
Glad you’re sorted.