- This topic has 5 replies, 2 voices, and was last updated 2 years, 7 months ago by Tom.
February 16, 2018 at 12:08 pm #498428Margot
I’m looking to incorporate slick slider into my theme. I followed the instructions and put the css and js codes in .wp_header using GP Hooks. Here is what I entered:
I used the exact same example and code as they use in their demo but the slider doesn’t seem to be loading up and functioning though. I’ve read that people sometimes have issues incorporating this slider in WordPress themes so not sure if I should be using GP Hooks or enqueuing the scripts in the functions.php file.GP Premium 1.5.6February 16, 2018 at 9:18 pm #498612TomLead DeveloperLead Developer
Have you considered using this plugin?: https://wordpress.org/plugins/slick-slider/
If you’re not interested in that, you’ll need to:
1. Use the full URL in your references:
css/slick.css -> yoururl.com/css/slick.css
css/slick-theme.css -> yoururl.com/css/slick-theme.css
You should be able to read the file by putting yoururl.com/css/slick-theme.css into your address bar.
2. Replace this in your jQuery:
jQuery(document)February 17, 2018 at 6:23 am #498765Margot
My apologies, I just realized that I forgot to mention that I actually did use the full url on all the header css and js links on my website. I didn’t want to post the full link here so I shortened it but it is indeed pointing in the right direction. I verified each one of them individually as well just to double check.
I also made the jQuery replacement you mentioned but it’s still not functioning for me.
ps. Thanks for the suggestion. I would prefer to manually use the slick slider than get the plugin because I’m planning on integrating it with Advanced Custom Fields and more responsive options so doing it without a plugin would give me a bit more control overall.February 17, 2018 at 9:41 am #498990TomLead DeveloperLead Developer
You still have this in your code:
That needs to be removed or replaced with actual setting names and values.February 25, 2018 at 8:08 am #505218Margot
That did it! Thank you again!!February 25, 2018 at 11:50 am #505360
- You must be logged in to reply to this topic.