• Zeal

    (@zealwebdrumbeatcom)


    Good Day ladies n gents: I wish to customize ‘…/lib/widget.php’ such that I can have it in the theme directory (child), reason being that I have realized that all widget output is entirely controlled by this file yet its located in the parent plugin dir. I have tried making changes to it and uploading to my leaguemanager directory located in my theme, with no effect. Einsteins, help out.

    https://wordpress.org/plugins/leaguemanager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author LaMonte Forthun

    (@lamontef)

    Lib files can’t be moved to the theme, only templates. I’d recommend keeping a copy of the file at all times and when the plugin is updated you can replace the new widget.php file. Of course, you’ll also need to make sure that the widget file wasn’t updated and if it was that you implement your mods to the new file…

    Thread Starter Zeal

    (@zealwebdrumbeatcom)

    Thanks man! I had that in mind, however is there a future workaround to this manual updating method (thats my main worry)? what would it take to include widgets in the templates folder?

    Plugin Author LaMonte Forthun

    (@lamontef)

    Off the top of my head I think it’s doable, but again, the issue remains that if we update the widget.php file for functionality purposes, as I know we need to right now, then you would be left to decide whether or not to do a file compare and grab the changes for your file. I feel your pain on this on, I struggle daily with updates I’ve done to modules in another CMS that have to be reapplied when the author updates…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Editing the …/lib/widget.php file for custom hooks and upgrade ready’ is closed to new replies.