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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
harlowbogie Posted January 12, 2023 Author Share Posted January 12, 2023 What code should I add in to make the links have an underline? Link to comment
tuanphan Posted January 13, 2023 Share Posted January 13, 2023 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 Contact Customer Care - Learn CSS - Buy me a coffee (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