Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #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.

    “<script type=”text/javascript” src=””></script>”

    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


    Hi matteora!

    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:

    Even still it shouldn’t be included like that since WordPress has its own version of jquery loaded in.



    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: and suggesting me how to enque those script?

    <script type="text/javascript">
    	$("#contributors_explorers div a").hover(function(){
    		$("img", this).stop().animate({left:"-354px"},{queue:false,duration:450});
    	}, function() {
    		$("img", this).stop().animate({left:"0px"},{queue:false,duration:175});
    <script type="text/javascript">
    	$("#professional_workshop div a").hover(function(){
    		$("img", this).stop().animate({right:"-234px"},{queue:false,duration:450});
    	}, function() {
    		$("img", this).stop().animate({right:"0px"},{queue:false,duration:175});

    Thank you again


    If the codex entry is a bit much for you then I would suggest using a plugin instead. Something like:

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.