• Resolved eclev91

    (@eclev91)


    Hey there,

    Currently when your widget is loaded in a context outside widgets.php or the Customizer, the scripts required for the admin form don’t load. So, for example, if using Beaver Builder’s widget module, the form breaks and the widget can’t be used.

    Rather than only load the scripts on certain screens, you might move the admin form’s script and style registration into the callback that renders the form. This would ensure that anytime the form is loaded, so are the scripts and styles. This would probably require moving these scripts/styles into the footer, but I should imagine that’s fine.

    If there’s a git repo, I’d happily add a pull request.

    Also when you register/enqueue your scripts and styles, you only need to include paths when registering them. You’ve redundantly passed the paths when enqueueing, as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author richplugins

    (@richplugins)

    Hi @eclev91,

    First of all, I would like to say thank you for an absolutely right issue.

    Yes, you’re right, not everything is smooth there, but the problem only arises with a styles, everything else including the widget continues to work. We did it on purpose, even with broken styles.

    Please see the screenshots below, you can add the widget and connect your Google Place ID and show the reviews on the page in Beaver Builder:

    1. Add the widget:

    2. Connect Google place:

    3. Save it on the page and show the reviews:

    This should also work for you.

    Your second note about the repo is also great. We think about it and now we will raise the priority of this task higher, since we receive many similar proposals for improving the plugin. The link to repo will be included in the plugin description.

    Thank you for your help to improve the plugin! It’s really important for us and all clients!

    Thread Starter eclev91

    (@eclev91)

    Hey there – I now see the interface you’ve outlined here. However, the reviews now aren’t appearing in the widget (still placed via Beaver Builder).

    Looking at the debug information, it looks like there are reviews in the database. Not sure why they wouldn’t load into the widget.

    happy to send over full debug info.

    Thread Starter eclev91

    (@eclev91)

    Deleted all plugin data and started from scratch, working now. Oof.

    Plugin Author richplugins

    (@richplugins)

    Hi @eclev91,

    Great! Thank you for inform us.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Scripts not loading’ is closed to new replies.