not possible at the moment, however if you can code you can modify widgets/em-events.php
Thread Starter
smarru
(@smarru)
where can I place the em-widgets.php file in my theme folder? can widgets be overwritten too?
Thank you,
Srilatha
actually, what you can do is to duplicate the widgets/em-events.php file and rename then from there you can create a new events widget base on the original and modify; by doing that it won’t be replace during update.
Thread Starter
smarru
(@smarru)
@agelonwl I created a file called em-events-mod.php in the widgets folder and renamed the EM_Widget class to EM_Widget_Mod class. And replaced all instances of EM_Widget with EM_Widget_Mod. And renamed to “EM Widget Mod” But I donot see new Widget “EM Widget Mod” in the widgets list. Is there anything I am missing? Can you please help?
few things to try:
1. change widget registration at add_action('widgets_init', create_function('', 'return register_widget("EM_Widget_Mod");')); at around line 185
2. change the title at parent::WP_Widget(false, $name = 'Events Mode', $widget_ops); at around line 32
3. use include in events-manager.php file e.g. include(“widgets/em-events-mod.php”);
Thread Starter
smarru
(@smarru)
@agelonwl But if I change events-manager.php file in the main plugins folder it will be overwritten when I upgrade the plugin. Am I right?
yes, or try to put the include in your theme functions.php or use an init
am going to marked this as resolved.