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

    (@wizzud)

    There are a number of plugins that allow you to conditionally run widgets – Dynamic Widgets is one (that I have used, though not for the mobile/desktop condition), Conditional Widgets is another (that I haven’t tried), and there are undoubtedly others as well.
    The 2 I’ve mentioned seem to only distinguish between “mobile” and “desktop” (I don’t know how), so if you need more options than that then you’ll need to do a bit more investigation.

    Plugin Author wizzud

    (@wizzud)

    With regard to your other question (which you appended to this resolved thread)…

    Firstly, the reason you’re always getting a “+” or a “-” in the include_level setting is because you’re selecting (for example) “1 and above” or “1 and below” as the inclusion Level : just select “1” instead.

    If you want to exclude Root from the output, then set Starting at to 2.
    If you want to always show all the level 2 items (Parent A, Parent B, etc) then set inclusions Level to 2.
    If you don’t want anything shown when Root is the current item, then you’ll need add a qualifier of Current Item is in Secondary Filter.

    Thread Starter dpedrinha

    (@dpedrinha)

    Thanks, and how do I hide the children of the other parents?

    Plugin Author wizzud

    (@wizzud)

    Can you show me your current equivalent shortcode, please?

    Thread Starter dpedrinha

    (@dpedrinha)

    With this code from the other thread and your help:

    [cmwizard menu=12 branch=current depth=2 depth_rel_current=1 include_level="1" siblings=1/]

    It works ok, I managed to hide the other children, but it still shows the root and when I open a children, the menu disappears.

    I can live with the root there, but I need to show the children siblings and the parents when in a child page.

    Thanks

    Plugin Author wizzud

    (@wizzud)

    Does this do what you want…?

    [cmwizard menu=12 branch=current start_at="2" include_level="2" contains_current="secondary"/]

    “Show the current item’s branch, from its level-2 item downwards, and add in all level-2 items … but only show output when the current item is at or below level 2 (ie. not when Root is current item)”

    And, if you don’t mind me asking, are you using the widget’s Assist to help determine the option settings?

    Thread Starter dpedrinha

    (@dpedrinha)

    No. It doesn’t show the widget when I’m in root or child.

    Yes, I’m using it as far as I understand it lol

    Thread Starter dpedrinha

    (@dpedrinha)

    For instance, the code that works the best

    [cmwizard menu=12 branch=current depth=2 depth_rel_current=1 include_level="1" siblings=1/]

    Works on the site but doesn’t work on the assist. It never activates the children on the Assist. But it does on the site.

    Thread Starter dpedrinha

    (@dpedrinha)

    And I don’t know if it is supposed to work that way, but the assist shows all the children under the last Parent. Not under their parents.

    Plugin Author wizzud

    (@wizzud)

    Is your site web-accessible, so that I can take a look?

    I’m sure you’re on the latest WordPress version, but may I ask what other activated plugins you have, and what theme you’re using? Because if the Assist isn’t showing the same structure of menu items as the Custom Menu shows in Appearance > Menus, then there’s something getting in the way (I hope!)

    In the Branch dropdown (under Primary Filter), do the options there also represent the same item structure as shown in the Assist (ie. all children under the last Parent)? Or does it show the child items under their correct parents (ie. as structured in Appearance > Menus)?

    Sorry about all the questions, but I need some help to try and figure out why CMW is having these problems. It shouldn’t be this difficult!

    Thread Starter dpedrinha

    (@dpedrinha)

    No matter what I do, when on a Child, it doesn’t work.

    I believe it is because as I have too many Children they are not on my static menu, they are generated by a plugin.

    I’m testing the alternative “If not in menu”. But I don’t think I’ll be able to achieve what I want since I can’t get current item.

    Thread Starter dpedrinha

    (@dpedrinha)

    I understand and I thank you for your effort.

    On the Branch menu they show like in the Assist.

    I just remembered that “thing” about my menu. The Children are generated by a plugin.

    I would add it to the Appearance > Menu, but PHP complains of too many requests when I’m still in 1/3 of my Items.

    Yes, you can check my site tcmpoints.com make sure you are not on a localized version. I’m working only on the English .com for now.

    Thread Starter dpedrinha

    (@dpedrinha)

    Ok, I give up. I’ll just increase my php_value max_input_vars, generate my menu manually and lower it back when finished. I’ll let you know of the outcome.

    Thanks again

    Thread Starter dpedrinha

    (@dpedrinha)

    Done. Everything working now and I didn’t even reviewed the last plugin configuration I was trying lol.

    Thank you very much for the help.

    Thread Starter dpedrinha

    (@dpedrinha)

    But the Assist is still not showing the Children under their respective parents.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Is there a way to hide/show it in small/big devices?’ is closed to new replies.