• Resolved Imageanuwebdesign

    (@anuwebdesign)


    Is it not possible to use the custom variables within JS? If you could make that possible, this plugin would be super duper awesome…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Imagevaakash

    (@vaakash)

    Hi @anuwebdesign,

    You can place custom parameters wihtin your JS code and it will be replaced with the whatever value you are passing while using the shortcode.

    Example:

    <script>
    console.log('%%hello%%');
    </script>
    
    [sc name="test" hello="this will be logged"]

    The %%hello%% will be replaced with “this will be logged”.

    This feature is already there and let me know if this is not you are expecting.

    Thanks,
    Aakash

    Plugin Author Imagevaakash

    (@vaakash)

    Closing this as there is no update.

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

The topic ‘Custom Variable within JavaScript?’ is closed to new replies.