I have Wordpress site http://gambit.co/test with Visual Composer plugin which allows me to create pages in WYSIWYG mode. All content created by it is loaded with ajax and javascript. I have some nice media grid section but i cant assign specific links to squares. They all are minatures connected to their images.
I tried to replace their links with jQuery
jQuery(document).ready( function($) {
$("a[href='http://gambit.co/test/wp-content/uploads/2016/07/600_wynajem.jpg']").attr('href', 'http://www.google.com/');
});
But i doesnt work as well because there is no HTML content when scripts runs. I moved the script to the bottom of the page, just before closing BODY tag but id didnt work. I tried both with .attr and .prop. What should i do?