WordPress.org

Support

Support » Plugins and Hacks » Weekly Class Schedule » Use HTML in template

Use HTML in template

  • 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)?

    http://wordpress.org/plugins/weekly-class-schedule/

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.
Skip to toolbar