• Below the about me on the homepage I would like to use some shortcode but the widget doesn’t support it. Is there anything I can do about that?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • @mrmckee

    Add below code in functions.php and then you will be able to add shortcode directly in Widget.

    add_filter('widget_text','do_shortcode');

    Thread Starter mrmckee

    (@mrmckee)

    I’ve tried that but it doesn’t work for where I want the shortcode 🙁

    Can you please show me how and where you added shortcode ?

    Thread Starter mrmckee

    (@mrmckee)

    Yes, it’s in a particular plugin – in the Our Team section there is a title and description. I am trying to add it into the description box.

    The shortcode I am using is:

    [time-restrict-repeat type="daily" ontime="00:00:00" offtime="11:59:59"]
    Good morning[/time-restrict-repeat] [time-restrict-repeat type="daily" ontime="12:00:00" offtime="17:00:00"] Good afternoon[/time-restrict-repeat] [time-restrict-repeat type="daily" ontime="17:00:01" offtime="23:59:59"] Good evening[/time-restrict-repeat] and welcome to my website.  My name is Faye McKee and I set up Soothing Soul Holistic Therapies in 2017.

    and welcome to my website. My name is Faye McKee and I set up Soothing Soul Holistic Therapies in 2017.

    seems you need to show above content too in shortcode. Please try with this once.

    [time-restrict-repeat type="daily" ontime="00:00:00" offtime="11:59:59"]Good morning[/time-restrict-repeat]
    [time-restrict-repeat type="daily" ontime="12:00:00" offtime="17:00:00"] Good afternoon[/time-restrict-repeat]
    [time-restrict-repeat type="daily" ontime="17:00:01" offtime="23:59:59"] Good evening and welcome to my website.  My name is Faye McKee and I set up Soothing Soul Holistic Therapies in 2017.[/time-restrict-repeat]
    Thread Starter mrmckee

    (@mrmckee)

    It just appears exactly like that…

    I have made changes in last line. The code that you provided, has last line where shortcode gets closed still content has been added.

    Try with above code provided and let me know if it works.

    Thread Starter mrmckee

    (@mrmckee)

    Done that, have a look…

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Shortcode in Widgets’ is closed to new replies.