Question

I'm trying to add an arrow button on each image on this Wordpress page;

http://storyville.jonmarkoff.com/storyvillewp/our-work/

by using this code;

$( "#arrow" ).insertAfter( $( ".youtube_gallery_player a" ) );

But it doesn't seem to be working.

I'd appreciate your help.

Was it helpful?

Solution

I think u mean

$('<div id="arrow"> </div>').insert...

OTHER TIPS

Change your css from a # (which is an ID and unique) to a class (.arrow). Usage would be something like:

$( ".arrow" ).insertAfter( $( ".youtube_gallery_item" ) );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top