Okay
  Public Ticket #2035600
span element
Closed

Comments

  • Thibault started the conversation

    Hi,
    I have an other question. I'm using the portfolio mixed template for my home page. In the admin page, at the bottom, I put some text in the the "Hero Caption Title" and "Hero Caption Subtitle". But if I look the code, all the text is transform in span element (for each word), why ???
    Can I change this by an <h1> element or <h2> ?
    Thank you,

    Thibault G

  •  1,806
    Support replied

    Hi Thibault,

    Plz find this code in /js/scripts.js

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

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

    and remove it, then hard refresh the page (Ctrl+F5)


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Thibault replied

    Hi, 

    Thank you. It's work too !
    A last question ... (sorry !). I try to create a child theme but it's does not work ... In fact, the css and probably the js, doesn't load. Do you know why ? 

    Thanks a lot !

    Thibault

  •  1,806
    Support replied

    Hello Thibault,

    try this child theme (attached)

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Thibault replied

    Perfect !

    Thank you for your help.

    Cordially,

    Thibault