Weekly Class Schedule
Use HTML in template (5 posts)

  1. Nate
    Posted 1 year ago #

    I am using WordPress 3.8 and WCS 3.04. I am trying to edit the template for classes and add HTML so as to style the entry. Unfortunately, all HTML is stripped from the template when I submit. Is it possible to either add the possibility of using HTML when creating the template (without editing the PHP)?


  2. ty_pwd
    Plugin Author

    Posted 1 year ago #

    There's an option to allow for HTML tags in the options page. There are instructions there as well as to how to modify the allowed HTML tags list.

    Hope that helps.

  3. Nate
    Posted 1 year ago #

    I can only see the option to "Allow HTML in notes", not anything for the the "Class Details Template". Have I missed something?

  4. Nate
    Posted 1 year ago #

    I have upgraded to 3.05, but the issue is still there. After a little delving, I think I might have found where the issue lies, or somewhere close to it. In weekly-class-schedule/includes/wcs3_settings.php, there is an option for 'details_template' which is set to 'sanitize_text_field' (http://codex.wordpress.org/Function_Reference/sanitize_text_field). This is what is stripping the HTML out of the template and leaving me with

    [class] [instructor] [start hour] to [end hour] [notes]

    instead of

    <p>[start hour] to [end hour]</p>

    I hope that makes it a bit clearer for you to help me. I'm really pulling what little hair I have left out to find a solution.

  5. smarta
    Posted 1 year ago #

    I second it. I had my schedule styled, so some information would more visible and some less (like class start hour is more important than when it ends)

    Now html in Class Details Template is stripped. There is also no html added by add-on itself. It is impossible to stylize the line with one schedule event now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Weekly Class Schedule
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic