nicolasbinet
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Menu Image] WP_Scripts::localize errorFirst, your can replace lines 6 & 7 in
init/wmi-functions.php
by these 2 lineswp_localize_script( 'wmi-admin-script', 'editimg', array('url' => WMI_MENU_IMG_URL . 'assets/images/edit-icon.svg' ));
wp_localize_script( 'wmi-admin-script', 'deleteimg', array('url' => WMI_MENU_IMG_URL . 'assets/images/delete-icon.svg' ));And in line 20 in
assets/js/wmi-admin-script.js
jQuery('#upload-image-'+ menu_id).before('<div class="menu-img-block menu-block-'+menu_id+'"><ul class="menu-actions"><li><a href="javascript:void(0);" class="edit-btn" id="upload-image-'+menu_id+' data-id="'+menu_id+'"><img src="'+editimg.url+'" alt="edit"></a></li> <li><a href="javascript:void(0);" class="close-btn"><img src="'+deleteimg.url+'" alt="delete"></li></ul> <img class="menu-image upload-image-'+menu_id+'" src="'+attachment.url+'" width="120" height="120"></div>');
At the end, there is still a Js error, but it works any way.
Same here as of this morning.
Using WordPress : 5.8.3
WP Mail SMTP : 3.2.1
Language : French- This reply was modified 2 years, 10 months ago by nicolasbinet.
Hi Sarah,
Thanks for your answer, but we’re developing a custom raw theme.
Is-there anything we should avoid when working with a theme ?
iFrame is not something we would like to use as we have less control on the design.Nicolas
@dulé, I didn’t forgot the link, the site is under development and I can’t share the URL.
There is a Gist of the generated code.
https://gist.github.com/nicolasbinet/7cdd93b76dc877d42d1739c50b16393aI hope this helps.
Same here.
The plugin returns JSON content instead of getting the user back to the page he was.Forum: Plugins
In reply to: [WordPress Error Monitoring by Bugsnag] PHP 8.0 CompatibilitySame here.