Home>Support>The text on the widget tile

The text on the widget tile

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

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 Andrew Misplon
    Hi, I Work Here

    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.

  2. 2 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    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

  3. 2 years, 2 months ago Przemyslaw Gamdzyk

    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?

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

    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

  5. 2 years, 2 months ago Przemyslaw Gamdzyk

    Hi

    Okej, thanks for help :)

  6. 2 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Hi Przemyslaw

    Thanks for your understanding. Please, let us know if any SiteOrigin queries or requests arise in the future.

    Cheers

    Andrew

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