• Hey Atte,

    I have a table in my template which I’m trying to add events to but the widget keeps stripping any of my <tr> or <td> tags and concatenating my content as a single line of text. Div, p and a elements seem to work but it strips all others.

    Here’s an example of the code in my template:

    <table>
    <tr>
    <th>Date</th>
    <th>Play</th>
    <th>Location</th>
    <th>Time</th>
    <th>Tickets</th>
    </tr>
    </table>

    I’m trying to add a new row for each event by using the following code in the widget:

    <tr>
    <td>[start-date format='d M']</td>
    <td>[event-title]</td>
    <td>[event-venue]</td>
    <td>[start-date format="H:i"]</td>
    <td>[content]</td>
    </tr>

    If it’s a matter of editing the plugin files, I can manage that but I’m not sure where to look.

    Thanks in advance.

    https://www.ads-software.com/plugins/am-events/

Viewing 1 replies (of 1 total)
  • Plugin Author Atte Moisio

    (@moisture)

    Hi,

    The template code seems ok, and it shouldn’t strip those <tr> or <td> tags. I tried it and it works. Please make sure you have the following setup in the widget.

    Display before events:

    <table>
      <tr>
        <th>Date</th>
        <th>Play</th>
        <th>Location</th>
        <th>Time</th>
        <th>Tickets</th>
      </tr>

    Display for single event:

    <tr>
      <td>[start-date format='d M']</td>
      <td>[event-title]</td>
      <td>[event-venue]</td>
      <td>[start-date format="H:i"]</td>
      <td>[content]</td>
    </tr>

    Display after events:

    </table>

Viewing 1 replies (of 1 total)
  • The topic ‘Widget stripping html tags’ is closed to new replies.