-
AuthorPosts
-
December 26th, 2020 at 10:39 #110757
briancwelch
Power UserI noticed that on the animated title of Bravada’s landing page, special characters were being rendered as html code, not the character itself. Ergo, “&” was being animated and rendered as “&”.
I found that in the
resources > js > frontend.js, if you changevar oldStrfrom$location.html();to$location.text();, then the characters render ok.I am a noob, so perhaps there are other computational implications why
.html()was used, but I wanted the special characters to render ok.That’s my 2 cents worth
– Brian
December 26th, 2020 at 16:32 #110826Your solution would probably resolve the problem I mentioned in “Animated-title with french tiny spaces”, too (sorry for the double posting!).
BTW: The tiny space (“espace fine”) is rrepresented by the html-entity as far as I can see.
– bekaDecember 26th, 2020 at 16:36 #110827Hopefully the entity is visible now:
 
– bekaDecember 28th, 2020 at 14:38 #110990Zed
Cryout Creations mastermindThanks for the
.text()suggestion, Brian.
We used.html()because the code needs to take HTML tags into account when preparing titles for animation, but the solution is somewhere in the middle and will be included with the next theme update.If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
The topic ‘Tweek Suggestion’ is closed to new replies.