Okay
  Public Ticket #2577114
Ajax Font Nonsense
Closed

Comments

  • Xavier started the conversation

    Hi support. I have already started a font thread on this forum, but this is another distinct problem which needs to be resolved.

    Ajax is doing some funny things to the way the project/portfolio hero titles appear. I need to keep the ajax loading style, so I won't be disabling it. So we need to fix this font issue.

    The Issue:
    If you navigate to a project page from the home page,  the project page hero title looks fine. If you load the project page url directly, the hero title looks fine. HOWEVER if you navigate to the project from the 'Our work page' linked above, the title loses all its spacing.  So 'Our Revolution' becomes 'OurRevolution'.

    Here's an example of the flow that creates this problem...

    http://robertl41.sg-host.com/work/ ---> http://robertl41.sg-host.com/our-revolution/

    What do I do?

  •  1,802
    Support replied

    Hello Xavier,

    it's good you pointed this to us.

    Do the following: open /js/scripts.js and remove this bit from LazyLoad() function:

    $('.hero-title').each(function(){
    var words = $(this).text().slice(" ");
    var total = words.length;
    $(this).empty();
    for (index = 0; index < total; index ++){
    $(this).append($("<span /> ").text(words[index]));
    }
    });

    then hard refresh your page (Ctrl+F5) we will release an update shortly with this bug


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Xavier replied

    Problem solved! Thank you!!