March 17, 2014 at 1:22 pm #238647
I’ve just found out that, after having implemented jquery in my website, the previews images of the single posts don’t appear anymore.
I created a new template in the template builder area, added the element “Blog” with one only category to pick the posts from and set “show pagination”.
Then I created a page and chose the mentioned template.
Few days ago everything was working properly but now that I’ve added the following code to the header of my website, all the featured images are not shown anymore.
I know the issue is related with the code that loads jquery because if I remove this script everything works well, but I really need to use some jquery scripts on my website.
What can I do in order to use jquery code in my website AND, of course, mantain the default features of the template itself?
If you want to have a look this is a page where the cited problem appears clearly:
thank you very much
MatteoMarch 19, 2014 at 1:33 am #239753
The theme already comes with jquery loaded in and adding it in that would is definitely going to cause issues with WordPress in general.
You need to enque scripts instead: http://codex.wordpress.org/Function_Reference/wp_enqueue_script
Even still it shouldn’t be included like that since WordPress has its own version of jquery loaded in.
DevinMarch 19, 2014 at 11:20 am #239994
Devin thanks for the reply.
For me shouldn’t be a big deal using the WordPress version of jquery, I just need to use jquery regardless of where it comes from.
Unfortunately from the link you posted I don’t understand how to enque my script… do you mind having a look at my website (same page: http://www.wildlifechronicles.com/journal/) and suggesting me how to enque those script?
Thank you again
MatteoMarch 20, 2014 at 3:03 am #240464
I’ve not used that specific one but it looked good and was one of the first that came up when searching for something like this.
You must be logged in to reply to this topic.