Special Characters in Month Tooltip displaying as html

Home Forums Calendar Products Events Calendar PRO Special Characters in Month Tooltip displaying as html

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #947036
    Trenton
    Participant

    Hey there,

    In the Month view Tooltip (the pop-out when you hover over events within the month) my apostrophes and other special characters are displaying in their html format [“'” for apostrophe for example].

    How do I fix this? I’m using the simple [[=venue]] code to call the venue name in the tooltip.

    The calendar is here however I removed the special characters for now because the site is live.

    Thanks in advance! Your help is very appreciated,

    T

    #947224
    Barry
    Member

    Hi Trenton,

    I’m not sure I can replicate this. If I create an event containing ampersands, apostrophes and right arrow symbols in the title/content they display correctly within the month view tooltip.

    It looks like when you opened this topic you indicated having already run through our standard troubleshooting steps (ie, deactivating all other plugins and reverting to a default, completely unmodified theme) – just for the avoidance of any doubt, can you confirm that didn’t solve the problem/highlight any conflicts?

    I just wanted to double check as it does look like you’ve applied some customizations to your tooltips and, as above, I cannot replicate the problem as described on a clean test site.

    If you’re able to confirm/do some additional testing in order to eliminate the possibility of a conflict/problem stemming from customizations that would be appreciated 🙂

    #947467
    Trenton
    Participant

    Hey Barry –

    Unfortunately it doesn’t appear to be from conflicts.

    The big change that I made to the code was explained from this forum post, by your associate, Geoff.

    add venue to month tooltip

    He explains the simple process on how to include the venue name, however if that name contains special characters they display as HTML code…

    Are there any other possibilities as a fix for this, I implemented the edit exactly as Geoff explains it.

    Thanks so much for your assistance.

    ~Trent

    #947545
    Barry
    Member

    Hi Trent,

    So the problem stems from the change you made (on the basis of that other forum post) — in other words, when that customization is not in place you don’t see the problem?

    #947670
    Trenton
    Participant

    Yes, Thats correct. The only problem seems to be with the Venue Name. And by default, there is no venue name in that Tooltip. I added it for a client through the instruction of Geoff’s post. Perhaps he could be of some assistance with a solution?

    Thanks so much in advance for your time on this, its much appreciated.

    ~Trent

    #947742
    Barry
    Member

    No problem – I think all you’re missing is the raw directive. So, instead of:

    [[=venue]]

    Try:

    [[=raw venue]]

    This just helps to ensure any HTML entities are treated as such and are not exposed to the visitor in plain text … you can find instructions relating to the templating system within month/single-event.php itself — I hope that helps 🙂

    #947751
    Trenton
    Participant

    Thanks Barry. Thats what I needed.

    All the best –

    #947765
    Barry
    Member

    Fantastic 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Special Characters in Month Tooltip displaying as html’ is closed to new replies.