Home>Support>Detecting Active Widgets on a page

Detecting Active Widgets on a page

Hi,

Our website was designed by out-sourcing and the original builder used SiteOrigin Widgets Bundle. Everything works, but now we’re trying to trim fat by deactivating plug-ins and widgets that aren’t being used, which should also improve security. I noticed only some of the widgets are active, but some active widgets like GoogleMap I don’t see being used anywhere on our site. My question is – “how” can one detect if a SiteOrigin widget is being used on a specific webpage? If there’s a way to tell, then we can deactivate widgets that aren’t being used on our site. If someone can assist, that would be great!

Thanks, Wayne

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 2 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Wayne,

    This is possible but it’s quite complicated to do automatically. If you only have a few pages, your best bet would be to manually check each page for usage. If you have a large number of pages, you can check by querying the database directly. Here’s a query that checks SiteOrigin Page Builder meta keys for SiteOrigin Editor widget usage.

    SELECT * FROM `wp_postmeta` WHERE `meta_key` = 'panels_data' AND `meta_value` LIKE '%SiteOrigin_Widget_Editor_Widget%' LIMIT 50

    SiteOrigin_Widget_Editor_Widget is the widget class name. You search for other widgets by identifying the relevant widget class and altering the above query to reference that widget. You can find the widget class by opening the widget file in the widgets directory and it’ll be at the top of the file. For example, this line contains the SiteOrigin Google Maps widget class.

    Kind regards,
    Alex

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More