Also, both are called:
<select name="pd_jp_dropdown_menu_widget-REPLACE_TO_ID" id="select_jp_dropdown_menu_widget-REPLACE_TO_ID">
@jeroen can you help?
Hi @prokops ,
I will investigate but as a newborns father I currently have little time on my hands
But I did read it and will take a look
Kind regards,
Jeroen Peters
Congratulations Jeroen !
I will switch out nr 2 with a html version until you can verify and fix whatever is the problem.
Cheers and enjoy!
-
This reply was modified 4 years, 11 months ago by
prokops.
OK, so I am running your widget in shiftnav. For this to work, I am outputting it via shortcode. In this case, this code fails:
echo '<select name="pd_' . $this->id . '" id="select_' . $this->id . '">';
Cheers
-
This reply was modified 4 years, 11 months ago by
prokops.
Hey @prokops , thanks for congratulating me!
Thanks for clarifying you are working with ShiftNav, so I can recreate your situation accordingly.
Without shiftnav, it seems to work at my testsite with Chrome as browser. I will try it with ShiftNav now
Hi @prokops,
I could not find how I’d include the widget into ShiftNav. Do you have one or two screenshots for me?
Also, can you tell me if you get an error on the piece of code you are referring to? The code seems to be correct in WordPress itself, but maybe it behaves differently in ShiftNav
Kind regards,
Jeroen Peters
Hi Jeroen, I use a plugin that makes widgets to shortcodes: https://da.ww.wp.xz.cn/plugins/widget-shortcode/
The I insert shortcode into Shiftnav: https://paste.pics/CX0QR
In this process, your plugin loses the reference. I know this is not a beautiful implementation, but Shiftnav recommends to use widgets this way.
Note: I changed out the shortcode plugin to one that is much more popular: https://ww.wp.xz.cn/plugins/amr-shortcode-any-widget/
Now everything works. So the solution is there 🙂
Hey @prokops , I didn’t even know these plugins existed. Great that you have it working with the other plugin!
It is to make Shiftnav work with widgets :/ All is good now, so I hope you enjoy parenthood 🙂
I do, thank you! 🙂 And also thanks for using my plugin!