dpedrinha
Forum Replies Created
-
It works directly on the page either with comma or space.
On the wp-all import it doesn’t work in any way. It’s not that it fails after being imported, the import plugin itself doesn’t allow the import at all. It just gives an error and doesn’t import the page.
But in contact with them they told me that on their pluging shortcodes should be added using backslash before every open bracket “\[“.
I can tell that it works without the backslash when the code has no comma, but I haven’t tested and I can’t test the backslash option for codes with comma right now. But it makes sense and should work.
I’ll be adding a new language to my website this week and then I can test it. I’ll let you know.
Forum: Plugins
In reply to: [MultilingualPress] language selector in main menuYou don’t need a plugin.
In the Appearance -> Menu options you have the the available languages ready to add to your menu.
You can also add a Custom link to the menu with a label “Languages” pointing to # (which won’t redirect to anywhere if clicked) and add the languages you want under this menu to make a sub-menu of available languages if you want.
If I remove the comma and use a space the wp-all import accepts the shortcode, but your plugin doesn’t work properly. Everything after the place where the comma should be becomes plain text.
Well, since my alternative is, for now, just for one page, I fixed it with one code for the page manually and another code for the rest of the pages, without the alternative option.
But I think it’s worth looking into it.
I also messaged the wp-all import guys about this problem.
Now I have another problem. LOL
I’m using All-import plugin to generate my database.
When I add this shortcode to the pages template before importing:
[cmwizard menu=9 title="Meridianos e Pontos" branch=current depth=2 depth_rel_current=1 include_level="1-" exclude="478" siblings=1 widget_class="hidden-xs hidden-sm" alternative="no-current,menu"]title="Meridianos e Pontos" exclude_level="2" widget_class="hidden-xs hidden-sm"[/cmwizard]
It complains: Post content template is invalid: Unexpected token COMMA, statement was expected.
The problem is after the “alternative”. If I remove everything after (and including) the alternative, it works. Actually if I remove the COMMA from the “alternative” the All-import won’t complain, but of course, your plugin stops working.
The code also works if I put it on my pages manually, but for some reason the All-import is not allowing it.
I have more than 400 pages for each language, I can’t do it one-by-one.
Any idea?
Ahh! Makes sense!
Thanks
Back to the show and hide.
I was trying to use bootstrap responsive utilities since my theme uses it. But it’s not working properly.
For instance, if I put “hidden-xs hidden-sm” classes in CMW Container -> Class it hides the content of the CMW in small devices. But the title persists. And I want to hide the widget entirely.
So the right place to add this code would be on Classes -> Widget Class, right?
But it just doesn’t work. If I debug the page, those bootstrap class styles are never loaded. The final HTML for the widget looks like this:
class="widget widget_custom_menu_wizard"
Even though the short code is:
[cmwizard menu=15 title="Acupuncture Meridians" branch=current depth=2 depth_rel_current=1 include_level="1-" siblings=1 widget_class="hidden-xs hidden-sm" alternative="no-current,menu"]title="Acupuncture Meridians" exclude_level="2"[/cmwizard]
If I add it to Classes -> Menu Class = “menu-widget hidden-xs hidden-sm” it works too, but again, the title stays visible.
Any idea?
Thanks
Sure. It was this plugin: https://gecka-apps.com/wordpress-plugins/geka-submenu/
Let me know if you need more help to debug it.
But the Assist is still not showing the Children under their respective parents.
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.
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
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.
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.
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.
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.