drunkbeetle Posted February 27 Share Posted February 27 (edited) I would like to change the default link of mailto:info@website.com.au to a link to the Contact Us page. Because I'm getting a lot of spam emails asking for SEO optimization 😕 I've already changed the text in the footer to images, but I still got some today. I know this doubles up as a Contact Us button, but I like to have the mail icon in the top right hand corner. _ On another note, any tips to avoid these spam emails? any help would be appreciated.  Edited March 3 by drunkbeetle Link to comment
tuanphan Posted March 1 Share Posted March 1 Can you share site url? We can check problem easier 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
drunkbeetle Posted March 1 Author Share Posted March 1 (edited) Hi, [redacted] I am talking about changing the link for the mail icon on the top right hand corner. [redacted image] Edited March 3 by drunkbeetle Link to comment
tuanphan Posted March 3 Share Posted March 3 Add to Website > Website Tools > Code Injection > Footer (DO NOT add to Custom CSS) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('header#header a.icon').attr('href','/contact'); }); </script>  drunkbeetle 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!) Link to comment
drunkbeetle Posted March 3 Author Share Posted March 3 (edited) Thank you very much Tuan! It worked like a charm! Can you tell me, how do you decide if this code goes into the header, footer or custom css? Oh also, is it possible to hide that mail Icon on the Contact page? Edited March 3 by drunkbeetle Link to comment
Solution tuanphan Posted March 5 Solution Share Posted March 5 On 3/3/2024 at 7:04 PM, drunkbeetle said: Thank you very much Tuan! It worked like a charm! Can you tell me, how do you decide if this code goes into the header, footer or custom css? Oh also, is it possible to hide that mail Icon on the Contact page? With Custom CSS, the code format will be like this id/class name { CSS value; } Code Injection Header/Footer, the code format will be like this <style> CSS code </style> or <script> JS code </script> or <link rel="stylesheet" href="url" /> With <style>, usually add to Code Injection Header <script> will be Code Injection Footer (but you insert it in Header or Footer, it will also run) With Contact Page, add this code to Contact Page Header Code Injection <style> header#header a.icon[href*="contact"] { display: none !important; } </style> drunkbeetle 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!) 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