Tweek Suggestion

  • Author
    Posts
  • #110757
    briancwelch
    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

    #110826

    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

    #110827

    Hopefully the entity is visible now:  
    – beka

    #110990
    Zed
    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 WordPress.org.
    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.