This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Widget Description Control

6 years ago · Last reply by Alex S 6 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

7
  1. Alex S Staff 6 years, 5 months ago

    Hi James,

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

  2. James Brown 6 years, 5 months ago

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

  3. Alex S Staff 6 years, 5 months ago

    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. James Brown 6 years, 5 months ago

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

  5. Alex S Staff 6 years, 5 months ago

    Hi James,

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

  6. James Brown 6 years, 5 months ago

    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. Alex S Staff 6 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread