• Resolved echo1consulting

    (@echo1consulting)


    Hi, I am using this plugin with Siteorgin Page Builder:

    https://www.ads-software.com/plugins/siteorigin-panels/

    This plugin allows use of widgets in a page or post.

    When I use the image widget with this plugin, I get an error because the image widget javascript does not load on page/post edit screens.

    I see you have a check for the class-level variable $load_hwim_backend before loading scripts. This would integrate with Siteorgin Page Builder if the scripts would load on the page/post edit screens.

    Can you please add a filter when performing the check on whether or not to load the javascripts?

    Thank You,

    https://www.ads-software.com/plugins/hw-image-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author H?kan Wennerberg

    (@puffythepirateboy)

    Hi,

    Thanks for the feature request, I will add it to the widget.

    Plugin Author H?kan Wennerberg

    (@puffythepirateboy)

    Hi,

    I added a filter named “hwim_load_backend” into version 4.4. Its checked pretty early.

    Plugin code:

    / Allow backend loading be overridden by third party.
    $this->load_hwim_backend = apply_filters('hwim_load_backend', $this->load_hwim_backend);

    Values passed to/from filter:
    0, Don’t load.
    1, Normal load (ie. widget page or any other “normal” admin page)
    2, Theme customizer load.

    Difference between 1 and 2 is the action used to load scripts.

    Thread Starter echo1consulting

    (@echo1consulting)

    Thank You.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working with page builder’ is closed to new replies.