• Resolved Alyaron

    (@alyaron)


    Hello,

    I created a custom layout and stored it as suggested in the plugin’s folder.

    The 2.0 version erased/replaced the whole folder and therefore my layout inside. Nothing was shown to users anymore, until I re-uploaded the custom layout myself (not really nice as we rely quite much on this feature).

    Could you find a way to make sure that updates don’t erase layouts or tell me how to do? If necessary, I can move the layout files anywhere else if you tell me where.

    Thanks in advance for your support,
    Alyaron

    https://www.ads-software.com/plugins/magic-post-listing/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Webilia Inc.

    (@webilia)

    Hello,

    It’s WordPress update scenario, WordPress removes previous plugin completely and then install new plugin. It’s why your custom layout removed.

    I suggest you to override one of default layouts in your theme if you don’t want to upload your custom layout again after each update.

    For overriding a layout in your theme, upload the layout file in /path/to/theme/webilia/magic-post-listing/app/widgets/MPL/tmpl/default.php
    Same for assets or forms directory.

    Regards,
    Webilia Team

    Thread Starter Alyaron

    (@alyaron)

    Thanks for the quick reply – it works!

    As I understand it (digging into the code), all default layouts in /wp-content/plugins/magic-post-listing/app/widgets/MPL may be overridden by files in /wp-content/themes/mytheme/webilia/magic-post-listing/app/widgets/MPL, but no new layout may be added this way.

    Therefore I replaced the “default” layout with mine and I’m all set.
    Thanks again,
    Alyaron

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom layout disappeared after update’ is closed to new replies.