Tweek Suggestion

  • Author
  • #110757
    Power User

    I 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 change var oldStr from $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


    Your 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.
    – beka


    Hopefully the entity is visible now:  
    – beka

    Cryout Creations mastermind

    Thanks 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
    Please check the available documentation and search the forums before starting a topic.
Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Tweek Suggestion’ is closed to new replies.