Home>Support>Widget Description Control

Widget Description Control

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi!

After you start adding content to a widget, the widget description field updates with a preview of the content within, as far as I can tell this is always pulled from the very first top-level widget field.

I was wondering if there’s a way to target a particular field to pull this information from? similar to how ‘item_label’ can be targeted in a repeater. Often my custom widgets have their key content within a section so I’d like to be able to select which specific field to pull the info from, especially on large pages with many of the same widget!

Thanks!

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

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

    Hi James,

    You can use panels_title to do this. This is set in the the $widget_options array.

  2. 5 years, 10 months ago James Brown

    Hi Alex, could you provide an example of how I’d tell this what field to use for the description?

  3. 5 years, 10 months ago Alex S
    Hi, I Work Here

    Hi James,

    Regrettably, I’ve mistaken this setting for the different unrelated setting. I’m really sorry about that!

    This field doesn’t allow a selector, but it does allow you to set a manual (static) widget title. I’ve marked this thread as a feature request. We often look through these threads to get ideas for what to add in our future updates. Hopefully, we’ll be able to add this in a future update. I’m really sorry for the misunderstanding on my part!

  4. 5 years, 10 months ago James Brown

    No problem, it’d be really useful so I hope it’s something you’ll consider :)

  5. 5 years, 10 months ago Alex S
    Hi, I Work Here

    Hi James,

    Thank you for your feedback! We really appreciate it! :)

  6. 5 years, 10 months ago James Brown

    Hi again, found a workaround for the time being, I’ve created a text field at the top of my widgets, hidden it with CSS, and use jQuery to populate it with content from my field of choice on change, good enough for the moment! :)

  7. 5 years, 10 months ago Alex S
    Hi, I Work Here

    Hi James,

    It’s great to hear you found a solution that works for you! :)

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