Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Using existing jQuery code of theme or creating new code

$
0
0

Replies: 0

Hello,
I’m quite new to WordPress, Javascript, jQuery, PHP and I want to add a functionality to my website:
I’ve installed a theme, what offers a hover effect to images in the gallery, what works fine. This hover effect on an image I want to have now in addition if the mouse is over a listing point of a text list beside which refers to the image with the hover effect. This should work with the other images and list points, too. This function is not part of the theme, I have to do it by my own, that´s why I post this here and not in the theme forum.
My question is now, which way I should go:

A) Using the existing jQuery-Code from the theme, what is a bit tricky for me, because I haven’t got so much experiences with jQuery and no idea where to change. Maybe there is a tutorial how I can separate my needed function, any hint?

B) Writing own jQuery-Code to get the task solved. Probably it is not the best idea writing some existing code for the second time, producing redundant code. Otherwise in that case I would learn something more about jQuery…

Or is there another way for me? What would you recommend me or how would you solve this task?

Thanks in advance.


Viewing all articles
Browse latest Browse all 59525

Trending Articles