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> 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
Archived
This topic is now archived and is closed to further replies.