ceesay Posted June 23, 2020 Share Posted June 23, 2020 Instagram social icon on the header is missing an aria-label. Facebook and Pinterest automatically have theirs included. Does anyone have a solution to assigning that attribute via code injection? I don't seem to know what querySelector to use. Thanks! Link to comment
rwp Posted June 23, 2020 Share Posted June 23, 2020 https://www.w3schools.com/jquery/html_attr.asp Link to comment
tuanphan Posted June 23, 2020 Share Posted June 23, 2020 Can you share link to your site? We can give the code easier. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ceesay Posted June 23, 2020 Author Share Posted June 23, 2020 This is the script that should work, but I can't seem to figure out what the querySelector to use: <script>window.Squarespace.onInitialize(Y, function(){document.querySelector("????").setAttribute('aria-label', 'Instagram');});</script> Link to comment
rwp Posted June 23, 2020 Share Posted June 23, 2020 We really need a link to your site to help. Link to comment
ceesay Posted June 23, 2020 Author Share Posted June 23, 2020 7 hours ago, tuanphan said: Can you share link to your site? We can give the code easier. Hi, @tuanphan! I emailed you directly. Right now it's a staging site with a password. Thank you!!!!! Link to comment
rwp Posted June 23, 2020 Share Posted June 23, 2020 @ceesay, would you mind sending me the link as well. I would like to take a look. Link to comment
ceesay Posted June 23, 2020 Author Share Posted June 23, 2020 @rwp, I just messaged you! Thanks! Link to comment
rwp Posted June 23, 2020 Share Posted June 23, 2020 @ceesay I would do this in jQuery, by locating the link by the url and then setting the label $("a[href='https://www.instagram.com/claudiaendler_designs/']").attr('aria-label', 'Instagram'); Link to comment
ceesay Posted June 23, 2020 Author Share Posted June 23, 2020 @rwp, yayayayyayayayay!!!! I had tried doing this, but was missing the 'a' before the href. This works perfectly. Thank you. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment