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].
I have written a widget for the SiteOrigin Widget. I would like to change the text that appears on the widget tile. How do I do this? I mean this text, I want it to depend on what the user selects in the widget
Hi Przemyslaw
Thanks for getting in touch.
I’m unfortunately not sure how you might achieve this task without custom development. I’ll ask Alex at SiteOrigin if he has any ideas.
Hi, thanks for the wait. Alex has sent the following feedback:
—
You can either use the description or the panels_title. Please, see https://github.com/siteorigin/siteorigin-panels/pull/899.
In the example snippet, the first line is the fallback, while the last line is the field Page Builder will look for to get a value.
—
Hopefully, the above feedback helps. Please, let us know if you have any follow-up queries. I can also ask Alex to reply directly. Thanks again. Andrew
Hi
Thanks for help
Its work, but i have a select field:
if($prelegenci->have_posts()) {
while ($prelegenci->have_posts()) {
$prelegenci->the_post();
$id = $post->ID;
$tytul = $post->Nazwisko;
$opcje[$id] = $tytul;
}
}
………
“prelegent” => array(
“type” => “select”,
“label” => “Wybierz prelegenta”,
“prompt” => __(“Prelegent”, “prelegent”),
“options” => $opcje,
),
So when I use “panels_title” => “prelegent”, I have an id not a name. Can this be changed?
Hi Przemyslaw,
Unfortunately, Page Builder is only able to fetch the value of the field at this time. I’ve logged this as a feature request and I recommend using a different field or not dynamically updating the title (done by setting panels_title to false).
Kind regards,
Alex
Hi
Okej, thanks for help :)
Hi Przemyslaw
Thanks for your understanding. Please, let us know if any SiteOrigin queries or requests arise in the future.
Cheers
Andrew