harlowbogie Posted December 29, 2022 Share Posted December 29, 2022 Hi, how can I have a link that's within an accordion open in a new tab? To see an example, go to the following web page (see below), scroll to the 2nd accordion, click on its first row ('How to register'), and click on the link within it. I want that link to open in a new tab (target=_blank). https://mandolin-terrier-tzne.squarespace.com/classes password: Todd Thanks! Link to comment
Solution tuanphan Posted December 30, 2022 Solution Share Posted December 30, 2022 Add this to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function() { $('div.accordion-block a').attr('target','_blank'); }); </script> 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
harlowbogie Posted January 12 Author Share Posted January 12 What code should I add in to make the links have an underline? Link to comment
tuanphan Posted January 13 Share Posted January 13 22 hours ago, harlowbogie said: What code should I add in to make the links have an underline? Add this under above code <style> div.accordion-block a { border-bottom: 1px solid black; } </style> harlowbogie 1 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment