I added the shortcode in the Divi theme. The single time it shows proper number, but when I add the Second counter shortcode in the same section then it didn’t work. so how to add second counter in the same section?
]]>When we configured Google Tag Manager, we found that the window.onload init script stopped working, as GTM also implements a listener here.
So, we modified the code starting on line 93 (show_counter.js) and used this pattern. Please incorporate or post feedback at your convenience.
`[93] window.onload = function() {
//add countup via eventlistener
window.addEventListener ?
window.addEventListener(“load”,add_count_listener(),false):
window.attachEvent && window.attachEvent(“onload”,add_count_listener());
function add_count_listener() {
wpcjs_get_counter();
wpcjs_check_visibility();
$( window ).on( ‘scroll’, wpcjs_check_visibility );
Upon using the countup plugin, I was able to get everything to work correctly with the exception of the comma (separator). The separator is returning as undefined. I have dug into everything can’t find why it is returning that. Everything is set to default and ‘,’ is string and assign to the variable.
Have you bumped into this before? Let me know if I can give more helpful detail.
]]>Hi!
I’m trying to insert two countUp and animation of the first countUp starts only if I move to the second countUp.
Thanks!
]]>I have installed the plugin, and even though a comma is in the separator field in the settings, it says “undefined” in the front end?
]]>Is there anyway I can make it so the countup begins only when the target element is scrolled in to view?
]]>The countup works, but the shortcode output is wrapped in a div and span:
<div class=”type-wrap”><span id=”counterupJSElement” style=”white-space:pre;”>$100</span></div>
This is causing the output to be on it’s own line, so I can’t have the output look like:
Amount: $100
]]>Undefined variable: explanation in /home/rudtekco/public_html/hhc/wp-content/plugins/countup-js/index.php on line 105
Undefined variable: explanation in /home/rudtekco/public_html/hhc/wp-content/plugins/countup-js/index.php on line 98
]]>I was able to get the shortcode to work within a widget; but when I use multiple Countup JS shortcodes within the same widget, only the first one works.
Is this a known issue? Do you have a fix? Is it something I’m doing incorrectly?
]]>