Support » Plugin: Weekly Class Schedule » Use HTML in template

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ty_pwd

    (@ty_pwd)

    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.

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

    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>[class]</p>
    <p>[instructor]</p>
    <p>[start hour] to [end hour]</p>
    <p>[notes]</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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use HTML in template’ is closed to new replies.