CRE Posted March 7, 2021 Share Posted March 7, 2021 Hi, I've changed the site title link for the english version of the website and it works perfect on desktop. But on mobile it doesn't work anymore and the link goes back to the german start page. I've used this code: <script> $(document).ready(function() { $('#site-title').attr('href','/english/home'); }); </script> Any ideas? Thanks! Clemens Link to comment
CRE Posted March 9, 2021 Author Share Posted March 9, 2021 I just solved the problem by using this code: <script> $(document).ready(function() { $('#site-title').attr('href','/english/home'); }); $(document).ready(function() { $('.header-display-mobile #site-title').attr('href','/english/home'); }); </script> Link to comment
tuanphan Posted March 20, 2021 Share Posted March 20, 2021 Hi. You can combine both code to this <script> $(document).ready(function() { $('#site-title, .header-display-mobile #site-title').attr('href','/english/home'); }); </script> CRE and creedon 2 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