• Resolved EMar

    (@sounds)


    Hi,

    Using this short-code
    [current-show show_avatar=”1″ avatar_width=”80″ show_sched=”1″ show_desc=”1″]

    When there’s no scheduled show to display, it says:
    No Show currently scheduled.

    Can I change or add text to that message?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tony Zeoli

    (@tonyzeoli)

    Sorry for the delayed reply.

    I’ll ask Tony Hayes to reply and he’ll let you know.

    Plugin Contributor Tony Hayes

    (@majick)

    @sounds The shortcode attribute for this for the Current Show shortcode is default_name.

    HTML will be escaped though, so if you need to include extra HTML markup instead of just change the text message, you’ll want to use the filter radio_station_no_current_show_text to set this instead.

    • This reply was modified 2 years, 1 month ago by Tony Hayes.
    Thread Starter EMar

    (@sounds)

    Sorry I don’t get you fully, I’m not embedding html code, just using the shortcode.

    Plugin Author Tony Zeoli

    (@tonyzeoli)

    @majick just referenced that if you need to include extra HTML markup, you can use the filter instead. You noted that you just need to use the shortcode itself, so just use the attribute: default_name only if there’s no need for HTML markup at all. A filter would be used in your functions.php file and not as a shortcode.

    • This reply was modified 2 years, 1 month ago by Tony Zeoli. Reason: Add additional explanation
    Thread Starter EMar

    (@sounds)

    Sorry guys, I got a bit sidetracked,
    Still not 100% sure how to implement this,
    Do you mean I need to add code to my functions.php?

    Plugin Author Tony Zeoli

    (@tonyzeoli)

    Yes, you need to add a filter to your functions.php in a child theme. If you don’t have a child theme for your site, your choice of theme should have one for your theme or you can create your own. Then, you would just add the filter to that file and it will append it onto the themes functions.php so that the filter code never gets overwritten by a future theme update. If you’ve never used a child theme, it’s easy to set up, so that any code you want to add to your theme is independent of the theme’s files.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change text for: No Show currently scheduled.’ is closed to new replies.