Slider jQuery installation question – help!
Permalink
Hi all, I need to get my head around this and hope someone can give me a clue.
I'm about to purchase the SlideDeck jQuery slider. Am I right in saying that I put the .js scripts in the header as normal and then on each page where I want a slider to appear I would then go to Add Block > HTML and add paste HTML code there?
If I do this where do I keep the images and how do I reference them?
Really confused, any pointers most welcome.
Thanks, JP
I'm about to purchase the SlideDeck jQuery slider. Am I right in saying that I put the .js scripts in the header as normal and then on each page where I want a slider to appear I would then go to Add Block > HTML and add paste HTML code there?
If I do this where do I keep the images and how do I reference them?
Really confused, any pointers most welcome.
Thanks, JP
Thanks for the quick reply!
Would you do the 'header extra content' bit on every page individually or would you put it on your header.php file?
Thanks again for an excellent and quick reply.
JP
Would you do the 'header extra content' bit on every page individually or would you put it on your header.php file?
Thanks again for an excellent and quick reply.
JP
For the 'header extra content', that would have to be done for every page you wanted the slider to show up on.
Adding the script to your theme's header.php file would allow it to be called at any time on any page throughout your site (at least where the theme is applied). This may be the better approach in your case. However, the code for calling the scripts will have to look like this:
Also, you do NOT need to call in any jquery library - Concrete already has jquery installed.
Adding the script to your theme's header.php file would allow it to be called at any time on any page throughout your site (at least where the theme is applied). This may be the better approach in your case. However, the code for calling the scripts will have to look like this:
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/your_slider_script.js"></script>
Also, you do NOT need to call in any jquery library - Concrete already has jquery installed.
Brilliant, thanks again.
JP
JP
Then you would use the HTML block for pasting the code where you want the slider to appear.
As for the images, here is a simple way to reference them:
- In the file manager, create a set for your slider images and associate your images with this set
- In the file manager, click on the thumbnail so that the concrete menu displays. Select "Properties"
- Look for "URL to file". Simply copy and paste this URL!
Hope that helps?