Home › Forums › Calendar Products › Events Calendar PRO › Special Characters in Month Tooltip displaying as html
- This topic has 7 replies, 2 voices, and was last updated 11 years, 2 months ago by
Barry.
-
AuthorPosts
-
March 9, 2015 at 1:49 pm #947036
Trenton
ParticipantHey 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
March 10, 2015 at 7:45 am #947224Barry
MemberHi 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 🙂
March 10, 2015 at 8:24 pm #947467Trenton
ParticipantHey 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.
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
March 11, 2015 at 7:21 am #947545Barry
MemberHi 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?
March 11, 2015 at 10:39 am #947670Trenton
ParticipantYes, 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
March 11, 2015 at 2:47 pm #947742Barry
MemberNo 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 🙂
March 11, 2015 at 3:14 pm #947751Trenton
ParticipantThanks Barry. Thats what I needed.
All the best –
March 11, 2015 at 4:22 pm #947765Barry
MemberFantastic 🙂
-
AuthorPosts
- The topic ‘Special Characters in Month Tooltip displaying as html’ is closed to new replies.
