Smart Wizard jQuery script within page
-
Hello all!
First let me say that I appreciate any advice or tips.
I have been banging my head against the wall trying to figure this out. I have read a lot of posts and tutorials on the correct way to implement javascript and jquery via the wp_enqueue_script and wp_register_script. However, it seems most of the tutorials and discussion is about running the script in the header or footer.
What I want to do is run the Smart Wizard jquery script in a page. Their documentation gives me this, which runs fine in a regular html page:
<script type=”text/javascript” src=”jquery-1.4.2.min.js”></script>
<link href=”smart_wizard.css” rel=”stylesheet” type=”text/css”>
<script type=”text/javascript” src=”jquery.smartWizard-2.0.min.js”></script>Inititialize the Smart Wizard, copy and paste the below lines inside the head tag (<head> </head>) of your page
<script type=”text/javascript”>
$(document).ready(function() {
// Initialize Smart Wizard
$(‘#wizard’).smartWizard();
});
</script>I have removed the line that loads jquery because my theme (Oxygen for woocommerce from themeforest.net) loads it already.
I have also tried changing the $ to jQuery since it seems jquery is loaded in compatibility mode from wordpress.
Can someone give me just a basic example of how this should me included in the page?
Thank you very much!!
The topic ‘Smart Wizard jQuery script within page’ is closed to new replies.