Home Forums WoodMart support forum Append plus symbol into an animated counter

Append plus symbol into an animated counter

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #208555

    atpd23
    Participant

    Hello, how could I append plus symbol after count number. At https://woodmart.xtemos.com/animated-counter/ there are some samples of animated counters with numerical numbers. But rather than number like e.g. 324 I would prefer 324+ (with plus symbol).

    I have tried solve it by the append function in JavaScript, but it seems I am doing something wrong, because nothing has happened. Here is the code part:

    getElementsByClassName("counter")[0].$("span").append("<b>Appended text</b>");

    Best Regards

    #208606

    Artem Temos
    Keymaster

    Hi,

    Try to add the following code snippet to the Custom CSS area in Theme Settings to do this

    .woodmart-counter .counter-value:after {
        content: "+";
        display: inline;
    }

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)