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

    I have a plugin that writes some javascript. it’s not working with enfold. it works with other themes.

    it seems that there are <p> tags within the js code – only with enfold.

    the plugin uses a lot of . “rn”; formating in a function called “counter_shortcode”.

    var customCounter_13399 = null;

    var customTimerId_13399 = null;

    function loadCounter_13399(){

    customCounter_13399 = new Counter(“customCounter_13399″, {

    digitsNumber : 6,

    direction : Counter.ScrollDirection.Upwards,

    scrollAnimation : Counter.ScrollAnimation.FixedSpeed,

    characterSet : Counter.DefaultCharacterSets.numericUp,

    charsImageUrl : “http://gekko-mate.de/wp-content/plugins/codecanyon-4662405-animated-counter-for-wordpress/images/numeric_up_blackbg5.png”,

    markerImageUrl : “http://gekko-mate.de/wp-content/plugins/codecanyon-4662405-animated-counter-for-wordpress/marker.png”,

    postfixText : ‘€’,

    showDecimalSeparator : true,

    value : 590.00

    });</p>

    <p> customTimerId_13399 = window.setInterval(function(){

    if (parseFloat(customCounter_13399.value) < 597.23){

    customCounter_13399.add(1, 800);

    } else {

    clearInterval(customTimerId_13399);

    }

    }, 1000);

    }

    loadCounter_13399();</p>

    <p>

    #122764

    Hey!

    Do you paste the javascript code directly into the text field? If yes try: http://wordpress.org/plugins/insert-html-snippet/ which should return the raw html/js code.

    Best regards,

    Peter

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

The topic ‘. "rn" . in a plugin code won't work with enfold theme’ is closed to new replies.