Hello,
I am a new user and thanks for the great theme! I am trying to customise the ID attribute of the various parallax sections on my website so that when clicking on the custom link menu on the top right, the URL changes from from “#shapely_home_parallax-10” → “#awards” (as an example).
Following this suggestion. I tried to add the following code using the widget “Simple Custom CSS and JS” (screenshot attached). I was expecting to see the IDs of two widgets (the 4th and the 2nd) being modified to “my_name” and “my_other_name” as for the script below. Unfortunately nothing changes in the IDs of parallax sections:
jQuery(document).ready(function( $ ){
var idCount = 1;
$('div').each(function() {
$(this).attr('id', 'q' + idCount);
idCount++;
});
$('div#q4').attr('id', 'my_name');
$('div#q2').attr('id', 'my_other_name');
});
I am not familiar with Javascript so I am probably missing something obvious! Any idea on how to make it work? Should I check some options related to “jQuery”?
Best regards
Gio