ManoFiga Posted October 9, 2023 Posted October 9, 2023 Hi all, I am using York template and recently added a landing page. Now i am trying to redirect my logo to my "Work" page. I did try different codes that i found on the forum and other websites, however the logo is directing me to the landing page. https://www.manofiga.com Thanks for any help in advance!
Solution Web_Solutions Posted October 9, 2023 Solution Posted October 9, 2023 Add these code on Code Injection panel in Website > Utilities > Website Tools > Code Injection. <script src="https://code.jquery.com/jquery-3.6.3.min.js"></script> <script> $(function(){ $('.logo-image a').attr("href","/work"); }); </script> Ainul and ManoFiga 1 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
Web_Solutions Posted October 9, 2023 Posted October 9, 2023 9 minutes ago, ManoFiga said: Worked perfectly! Thanks a lot lot! Welcome! If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
ManoFiga Posted November 28, 2023 Author Posted November 28, 2023 Hi again, any ideas why re-directing does not work on mobile?
tuanphan Posted November 30, 2023 Posted November 30, 2023 On 11/28/2023 at 8:44 PM, ManoFiga said: Hi again, any ideas why re-directing does not work on mobile? York Mobile uses a different class name, try this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(function(){ $('.logo-image a, .mobile-branding-wrapper a').attr("href","/work"); }); </script> If it doesn't work, you can share link to your York site, we can help easier ManoFiga 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment