Matthew26 Posted January 5 Share Posted January 5 Hi all, I know how to change the site logo link on my website, however, I wonder if it is possible to change this link on my member pages so that they don't leave the member area when clicking on the site logo? Any help with this would be great! Thank you! Link to comment
Solution Matthew26 Posted January 5 Author Solution Share Posted January 5 Spoke too soon! I managed with this code in the footer: <script> var url = window.location.href; var headerLogoLink = document.querySelector('.header-title-logo a'); if(url.indexOf("/put-page-here") !== -1){ headerLogoLink.setAttribute('href', "https://www.yoursitehere.com"); } else { headerLogoLink.setAttribute('href', "https://www.yoursitehere.com/home"); } </script> Jenna and tuanphan 2 Link to comment
Jenna Posted June 11 Share Posted June 11 Thanks so much for posting your solution! It worked for me and MAN was that a frustrating issue! Matthew26 1 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