WordPress.org

Forums

Simple Events Calendar
Events in widget displaying as text (2 posts)

  1. ModelPlane1
    Member
    Posted 1 year ago #

    I would like to display my events as a widget. I have found other threads in the forum to do with this and they say to add "add_filter('widget_text', 'do_shortcode' to my theme functions.php.

    After adding it I still get just the text displayed. Where exactly in the functions.php should I be adding the new line? I have also put [Events] in the text widget in my widget area.

    Any help appreciated.

    https://wordpress.org/plugins/simple-events-calendar/

  2. MartinGr
    Member
    Posted 1 year ago #

    Hi there,

    I've had the same problem.
    I copied the "add_filter('body_class', 'vantage_body_class');" text from a website to the funtion.php of my template an nothing happened.

    My solution:
    I changed the "curved" aphostrophs in the code to straight ones.
    I think it's a problem of the character options (UTF-8 or something)

    Position for the code:
    I found another add_filter so I put the new code above.

    Good luck

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic