Support » Plugin: CSSable Countdown » How to use HTML code for expirytext variable

  • Resolved JonathanBallsesqIII



    I would like for expirytext=” ” to contain HTML code such as an iframe with and embedded ticket purchasing widget. It doesnt appear to be parsing html correctly. is there a setting or config I can tweak to make this happen?

    [countdown date=”06/13″ time=”16:36:00″ display=”text” expirytext=”<div style=”width:100%; text-align:left;” ><iframe src=”//” frameborder=”0″ height=”523″ width=”100%” vspace=”0″ hspace=”0″ marginheight=”5″ marginwidth=”5″ scrolling=”auto” allowtransparency=”true”></iframe><div style=”font-family:Helvetica, Arial; font-size:10px; padding:5px 0 5px; margin:2px; width:100%; text-align:left;” >Powered by Eventbrite</div></div>” format=”DHMS”]

Viewing 1 replies (of 1 total)
  • Plugin Author dmonnier


    This will not work because you cannot nest HTML like that. The first opening ” for the div style is closing the expiry text parameter. This is what the DOM is seeing:

    expirytext="<div style="

    and the remaining is parsing as invalid HTML.

    You would have to modify the plugin files directly in order to include an iframe, and then the plugin would become very specific to this application.

    I will consider this for the next version of the plugin, if there is one.

Viewing 1 replies (of 1 total)
  • The topic ‘How to use HTML code for expirytext variable’ is closed to new replies.