abry747 Posted July 19, 2020 Share Posted July 19, 2020 Site URL: https://www.deprio.com/home Hi! I replaced the customer "account" login text link in the header with a font awesome icon. I want to see if there is a code that can make this icon clickable to go to another page on my site. I'm using 7.1, thanks! Here is the code I used in the code injection to create the icon: <script> $(".user-accounts-link").append("<i class='fa fa-user-o' aria-hidden='true'></i>"); </script> And the CSS I used: .user-accounts-text-link{ display:none!important; } Link to comment
rwp Posted July 19, 2020 Share Posted July 19, 2020 Wrap an <a> tag around your <i> tag in the jQuery. abry747 1 Link to comment
abry747 Posted July 19, 2020 Author Share Posted July 19, 2020 That worked! Thanks!..my icon size got smaller, do you know how I can increase the size? I'm using this css below but it's not changing the size. Thanks! .user-accounts-link {font-size: 25px !important;} Link to comment
rwp Posted July 20, 2020 Share Posted July 20, 2020 Give that <a> an id, so <a id="logo" href=...................> The set css a#logo { font-size: unset !important; text-shadow: none !important; } abry747 1 Link to comment
abry747 Posted July 20, 2020 Author Share Posted July 20, 2020 That worked perfect! Thank you again! rwp 1 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