tuanphan Posted Friday at 02:40 AM Posted Friday at 02:40 AM To add Phone/Email to right of Header like this. #1. First, use this code to Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('<div class="header-custom-info"><a href="tel:0123456789"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg> <span>0123.456.789</span></a><a href="mailto:abc@gmail.com"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg><span>abc@gmail.com</span></a></div>').appendTo('.header-display-desktop'); }); </script> #2. Use this to Custom CSS box div.header-custom-info svg { width: 30px; margin-right: 10px; } .header-custom-info { display: flex; flex-direction: column; font-size: 20px; margin-left: 3vw; } .header-custom-info a { display: flex; align-items: center; } #3. Customize You can change Email/Phone text here You can change icon here To get icon code, you can access FontAwesome > Choose an icon > Click this to get code To change icon size, text size, space between icon/text, adjust these 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