Home › Forums › Jevelin Theme › shortcode counter
Home › Forums › Jevelin Theme › shortcode counter
Hello, I hope to add % to the counter number. What should I do?
I will code some php, but I don’t know how to start, can you help me?
And I hope to add some punctuation
Like “.” or “,”
Hi @zz02846584zz,
I hope you are well today and thank you for your question.
To achieve this you have to overwrite following theme file in Jevelin child theme and edit it however you want.
/jevelin/framework-customizations/extensions/shortcodes/shortcodes/counter/views/view.php
Best regards,
Shufflehound team
How can I write it?
I haven’t gotten to the extent that I can write it myself.
Can you provide a view.php file that has already been edited.
:'(
Hello?
Solution for this topic
Along with editing view.php file, you have to also develop javascript code.
Alternatively you can try achieving this by adding the following CSS code in the Custom CSS code option of your theme on the below path.
Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code
.sh-counter-number.sh-counter-animate:after { content: "%"; }
Thank you for your help! What if I want to add a decimal point to the number?
Example: 11.93%
To use decimal point you have to develop custom code by overwriting following theme file in Jevelin child theme.
/jevelin/framework-customizations/extensions/shortcodes/shortcodes/counter/views/view.php
Developing custom code for custom functionality is beyond the scope of support that we provide here. Please see https://themeforest.net/item/jevelin-multipurpose-premium-responsive-wordpress-theme/14728833/support
If you are not a developer then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site. Shufflehound recommends the developer https://www.upwork.com/freelancers/~011652ffec8865c6d5