HomeownerHQ Posted December 1, 2023 Share Posted December 1, 2023 Hi, I've recently added some custom code to my website to remove the last name from the newsletter form. }); </script> <style> .newsletter-form-field-wrapper.field.last-name { display: none; } </style> Unfortunately when I test it, it says I'm missing the last name (image attached). Would really appreciate any help I can get. Thanks so much! Chelsey Link to comment
Web_Solutions Posted December 1, 2023 Share Posted December 1, 2023 2 hours ago, HomeownerHQ said: Hi, I've recently added some custom code to my website to remove the last name from the newsletter form. }); </script> <style> .newsletter-form-field-wrapper.field.last-name { display: none; } </style> Unfortunately when I test it, it says I'm missing the last name (image attached). Would really appreciate any help I can get. Thanks so much! Chelsey Can you share your website URL? 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. Link to comment
HomeownerHQ Posted December 1, 2023 Author Share Posted December 1, 2023 Yes it's https://homeownerhq.co/freebies Link to comment
Solution Web_Solutions Posted December 1, 2023 Solution Share Posted December 1, 2023 29 minutes ago, HomeownerHQ said: Yes it's https://homeownerhq.co/freebies 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(){ $('.newsletter-block [name="lname"]').attr("value","-"); }); </script> Kobir 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. Link to comment
HomeownerHQ Posted December 1, 2023 Author Share Posted December 1, 2023 Thank you so much! Link to comment
Web_Solutions Posted December 1, 2023 Share Posted December 1, 2023 2 minutes ago, HomeownerHQ said: Thank you so much! 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. 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