Jen-X Posted January 6 Share Posted January 6 Hi there, My client has a badge injected in the footer of her website and, when selected, brings the visitor off her website. I'd like it to open in a new tab. I've searched online and the solutions are not working for me. Can someone help with this? Thank you! I am a blogger who launched www.bikekitz.com in October 2018. Link to comment
yubrajs Posted January 6 Share Posted January 6 Please provide site url or screen-shot/screen-capture what you are trying to achieve? Link to comment
Jen-X Posted January 8 Author Share Posted January 8 Oh sorry, when I posted the question it asked for a web address, so I assumed you had it. This is the website: https://www.progressioncounselling.com/ There's a badge in the footer that links to a page off the website when selected. I'd like this page to open in a new tab. This is the code injection: <!-- Professional verification provided by Psychology Today --> <a href="https://www.psychologytoday.com/profile/312544" class="sx-verified-seal"></a> <script type="text/javascript" src="https://member.psychologytoday.com/verified-seal.js" data-badge="13" data-id="312544" data-code="aHR0cHM6Ly93d3cucHN5Y2hvbG9neXRvZGF5LmNvbS9hcGkvdmVyaWZpZWQtc2VhbC9zZWFscy9bQkFER0VdL3Byb2ZpbGUvW1BST0ZJTEVfSURdP2NhbGxiYWNrPXN4Y2FsbGJhY2s="></script> <!-- End Verification --> Thank you so much! I am a blogger who launched www.bikekitz.com in October 2018. Link to comment
tuanphan Posted January 10 Share Posted January 10 On 1/8/2024 at 9:50 PM, Jen-X said: Oh sorry, when I posted the question it asked for a web address, so I assumed you had it. This is the website: https://www.progressioncounselling.com/ There's a badge in the footer that links to a page off the website when selected. I'd like this page to open in a new tab. This is the code injection: <!-- Professional verification provided by Psychology Today --> <a href="https://www.psychologytoday.com/profile/312544" class="sx-verified-seal"></a> <script type="text/javascript" src="https://member.psychologytoday.com/verified-seal.js" data-badge="13" data-id="312544" data-code="aHR0cHM6Ly93d3cucHN5Y2hvbG9neXRvZGF5LmNvbS9hcGkvdmVyaWZpZWQtc2VhbC9zZWFscy9bQkFER0VdL3Byb2ZpbGUvW1BST0ZJTEVfSURdP2NhbGxiYWNrPXN4Y2FsbGJhY2s="></script> <!-- End Verification --> Thank you so much! Use this new code <!-- Professional verification provided by Psychology Today --> <a href="https://www.psychologytoday.com/profile/312544" class="sx-verified-seal" target="_blank"></a> <script type="text/javascript" src="https://member.psychologytoday.com/verified-seal.js" data-badge="13" data-id="312544" data-code="aHR0cHM6Ly93d3cucHN5Y2hvbG9neXRvZGF5LmNvbS9hcGkvdmVyaWZpZWQtc2VhbC9zZWFscy9bQkFER0VdL3Byb2ZpbGUvW1BST0ZJTEVfSURdP2NhbGxiYWNrPXN4Y2FsbGJhY2s="></script> <!-- End Verification --> (I added target="_blank") 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
Jen-X Posted January 20 Author Share Posted January 20 Thank you for this. Unfortunately, it is still not opening in a new tab. I am a blogger who launched www.bikekitz.com in October 2018. Link to comment
tuanphan Posted January 23 Share Posted January 23 Add this code under your code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function() { setTimeout(function(){ $('a.sx-verified-seal').attr('target','_blank'); }, 2000); }); </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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment