Forum Replies Created

Viewing 15 replies - 91 through 105 (of 324 total)
  • Plugin Author wizzud

    (@wizzud)

    Ummm … the short is Yes, anything’s possible.

    However, unless I’m reading this completely wrong (which would not be unusual), you want 3 “dropdowns” on a web page, with interaction between said “dropdowns”?
    As in … you visit a Cars page (or any other page for that matter) and somewhere on it you see 3 SELECTs :

    1. the 1st one presents a list of makes (Audi, BMW, etc)
    2. the 2nd then presents a list of the models related to the OPTION selected in the 1st
    3. then the 3rd presents a list of types related to the OPTION selected in the 2nd?

    CMW won’t do that for you :

    • CMW has no option for output as a SELECT (if that is what you meant by “dropdown”?)
    • CMW doesn’t provide any front-end javascript, therefore there is no in-built interaction between instances – you’d have to provide it yourself

    You could use 3 instances of CMW to provide filtered levels of your menu (as hierarchical lists) : 1st would be makes, 2nd would be makes & models, and 3rd would be (at least) models & types. Then use javascript and CSS to hide non-relevant items/sub-lists at the outset, and revealing items as choices are made from the 1st then 2nd lists. The 3rd list would presumably then be the only one that performs actual navigation (to the relevant make-model-type page).

    As I said, it’s possible … but a bit of a faff!
    Given that you’d have to provide the interaction anyway, I think you’d be better off writing a short plugin to do specifically what you want.

    PS : If I’ve got this all wrong and, as an example, on the Audi page you want a sub-navigation menu listing all the Audi models (maybe even with their associated types), then that is where CMW could be ideal (children of current page, 1 or 2 levels)? Or to list all the makes on any page? Or to list the relevant types on any make-model page? But again, if you want interaction (in-browser filtering) between instances, then you need to provide it yourself.

    Plugin Author wizzud

    (@wizzud)

    Don’t worry, everybody’s new to WordPress at some point.

    1. Yes. 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”.

    2. CMW doesn’t provide any styling or javascript, ie. nothing that relates to menu appearance or effects. If you need interactivity on your menu – such as expand-on-hover/click – then you’ll need to either find a plugin that adapts menu’s for you, or develop you own. Again, there’s a support thread that you might find useful (search WordPress for “cmw javascript”, or similar).

    Plugin Author wizzud

    (@wizzud)

    No problem.

    Plugin Author wizzud

    (@wizzud)

    Does it work in the “assist” (if you set the “Products” page as the current page)?

    If you haven’t tried it in the “assist” – because you only want shortcode, not a widget – then I suggest you add an instance of CMW to your inactive widgets area, set it up with the correct menu and start_at option, and, with the “Products” page set as current, check that it produces the items that you want to see on your page.

    Plugin Author wizzud

    (@wizzud)

    It sounds like you want an interactive menu?

    CMW does not provide interaction, for the same reasons that it doesn’t provide styling : everybody wants something slightly different.
    You might find this post – …/support/topic/collapse-and-expand – of use?

    One small note : if the Galleries menu item links through to a page, as well as being the parent of other menu items, then for a click-expandable menu you will need to have an extra collapse-expand element within the item’s HTML output (because clicking the item itself should navigate to the Galleries page). For a hover-expandable menu you doesn’t necessarily need the extra element (but you could run into problems with touch devices?).

    Plugin Author wizzud

    (@wizzud)

    Yes, just add a CMW widget to your sidebar and select your main nav menu in the widget’s Menu option.

    Plugin Author wizzud

    (@wizzud)

    I am unable to reproduce this.

    I have loaded the latest Storefront theme, on WordPress v4.3.1, and I have no problem accessing the customizer (from any admin page, for whatever reason).

    Since posting here, you have posted on the Storefront theme’s support forum, and on the Nav Menu Roles plugin’s support forum. Both posts are related to customizer problems, and both posts appear to indicate that Nav Menu Roles might be the cause of the problem : does this mean that you no longer have an issue with CMW?

    PS. I also loaded the Nav Menu Roles plugin (latest version), and still encountered no problems.

    Plugin Author wizzud

    (@wizzud)

    CMW pre-filters the items on a defined Custom Menu before passing them through to WordPress. Since the WP Cart Menu item is not on the Custom Menu at the time that CMW runs, CMW can’t do anything about it.

    Plugins like WP Menu Cart use filters within the WordPress processing (ie. within wp_nav_menu()) to add items to the menu, so whatever they do to the menu is done after CMW has completed its filtering.

    You have a few options, one of which is to add a style that hides #wpmenucartli when it is within CMW output, maybe something like…

    .widget_custom_menu_wizard #wpmenucartli { display:none; }

    Another option is to add your own filter on 'wpmenucart_menu_item_wrapper' – one of WP Cart Menu’s – which selectively returns an empty string – the tricky bit here is how you work out when you need to prevent the WP Cart Menu item showing and when you need to allow it to show! (Maybe allow it once then prevent it after that? Depends where your CMW instances are on the page.)

    Plugin Author wizzud

    (@wizzud)

    Try setting the Alternative, based on Current Item is Not in Menu?

    Plugin Author wizzud

    (@wizzud)

    Only by using the filter, with multiple CMW instances.

    CMW isn’t a “which menu to show…?” plugin, it’s a “what to show from a specific menu…?” plugin.

    Plugin Author wizzud

    (@wizzud)

    I’m sorry but No, not using the options.
    The closest decision-making option CMW provides is the ability to switch options based on the presence/absence of a Current Item, and even then you can’t switch from one menu to another.

    CMW does have a filter that might be used, if you could decide on the actual test that needed to be made…

    add_filter( 'custom_menu_wizard_settings_pre_widget', 'your_filter_function', 10, 2 );
    function your_filter_function( $instance_settings, $widget_id_base ){
      //$instance_settings are the sanitized options for this CMW instance
      if( [your_test_criteria] ){
        //prevent this CMW instance outputting anything...
        $instance_settings = array();
      }
      return $instance_settings;
    }

    …which could prevent/allow the running of any CMW instance. You’d need two separate instances of CMW – one based on Menu 1, the other based on Menu 2 – and your test criteria would have to include inspection of the widget settings to see which instance you’re filtering at the time, as well as somehow reliably determining which page you’ve come from. (Bear in mind that the filter gets called once, separately, for each instance of CMW, and that it runs before any of WordPress’s nav menu functions get called).
    If you’re comfortable with PHP then you could add such a filter to your theme’s functions.php (preferably a child theme!).

    Plugin Author wizzud

    (@wizzud)

    Yes.
    First level LIs static, second level ULs absolute in reserved space.
    This example uses javascript click handling, but if you ignore that and add a :hover rule and a bit of judicious re-alignment or padding here and there…?

    Plugin Author wizzud

    (@wizzud)

    Thank you for the report.
    However, if you are still getting this warning I would suggest that you try deactivating some of your other plugins until the message disappears … because CMW is not the culprit.

    Thread Starter wizzud

    (@wizzud)

    Many thanks for the fast response, but…

    The just-released v1.3.2 of Show Posts has the main fix, however you’ve only changed 1 of the calls to the atw_restore_the_content_filters() function : there are 4 more that also need to pass in the $saved_the_content_filter_key variable!

    Sorry to be a pain.

    Plugin Author wizzud

    (@wizzud)

    Making a menu horizontal menu is more a case of styling than content. Unfortunately, CMW doesn’t do styling! You can use CMW to filter what gets shown in your menu, but for how it gets shown you need to search for some CSS that will make the list horizontal, and stick it in your theme’s stylesheet (preferably a child theme).

    You might find this support thread useful?

Viewing 15 replies - 91 through 105 (of 324 total)