-
AuthorPosts
-
September 16, 2016 at 1:51 am #687167
Hello,
i have tried to integrade this jquery Indicator
http://kapantzak.github.io/barIndicator/but i can resolved it!
when i load the jquery from google, other thinks not work on the page
——
What i have to do? called all files from a subfolder or i have to integrade in the framework
?September 16, 2016 at 6:35 am #687244Hey derherbstler,
Do not add them in code block. WordPress already comes loaded with jQuery you only have to enqueue the 3rd party plugin in wordpress.
Please check the below links for more info
Here is an example of the same http://stackoverflow.com/questions/12130390/wordpress-plugin-with-3rd-party-jquery-plugin-integration
Best regards,
VinaySeptember 26, 2016 at 11:05 am #691534Thank You for the Information.
I have tried to enqueue the 2 sripts in the child functions.php
function barindicator() { wp_enqueue_script( 'barindicator', get_stylesheet_directory_uri() . '/js/jquery-barIndicator.js', array( 'jquery' ), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'barindicator' ); function scripts() { wp_enqueue_script( 'scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array( 'jquery' ), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'scripts' );
and i cal the barindicator in as follow:
<div> <span class= "bestellmenge">Aktuelles Gewicht der Vorbestellungen: 280 kg</span> <span id="bestellmenge" class="testBar">280</span> </div>
But is not working!
What i do false? If anyone can help me?
- This reply was modified 8 years, 3 months ago by derherbstler.
September 26, 2016 at 1:24 pm #691609Hi,
The jQuery plugin is enqueued correctly. However I suspect that the class name has a discrepancy. Also there is a js error in console not sure if it is because of the bar indicator script or another plugin.
A plugin conflict may be one of the reason for this issue.
To find which plugin is causing the conflict please follow these steps:1. Go to your plugins page > Deactivate all active Plugins
2. Update WordPress and Enfold to latest version if you have not.
3. Make sure all the plugins are updated.
4. If the problem does not persist when plugins are turned off, activate one plugin at a time and refresh until you find the plugin in conflict.If the plugin still do not work for you I am afraid you’ll need to contact the plugin author for more info about the issue. Making third-party plugins compatible with the theme is unfortunately beyond the support scope we offer. Sorry for that!
Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.