Rebeccaheywood Posted April 30, 2021 Share Posted April 30, 2021 Site URL: http://www.rebeccaheywood.uk Hi there! I was just wondering if at all possbible how i would change the menu icon so it is not text but a hamburger icon? I am using the wells template. Link to comment
tuanphan Posted May 1, 2021 Share Posted May 1, 2021 17 hours ago, Rebeccaheywood said: Site URL: http://www.rebeccaheywood.uk Hi there! I was just wondering if at all possbible how i would change the menu icon so it is not text but a hamburger icon? I am using the wells template. Add to Design > Custom CSS /* Menu text to burger */ #mobileMenuLink ul>li.active-link { visibility: hidden; } #mobileMenuLink ul>li.active-link a:before { visibility: visible; content: ""; background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNCAxOHYxaC0yNHYtMWgyNHptMC02djFoLTI0di0xaDI0em0wLTZ2MWgtMjR2LTFoMjR6IiBmaWxsPSIjMTA0MGUyIi8+PHBhdGggZD0iTTI0IDE5aC0yNHYtMWgyNHYxem0wLTZoLTI0di0xaDI0djF6bTAtNmgtMjR2LTFoMjR2MXoiLz48L3N2Zz4=); width: 30px; height: 30px; display: block; margin-right: 5px !important; background-position: right center; background-repeat: no-repeat; float: right; margin-top: 5px; } /* Burger to X icon */ .menu-open + div #mobileMenuLink ul>li.active-link a:before { background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjMuOTU0IDIxLjAzbC05LjE4NC05LjA5NSA5LjA5Mi05LjE3NC0yLjgzMi0yLjgwNy05LjA5IDkuMTc5LTkuMTc2LTkuMDg4LTIuODEgMi44MSA5LjE4NiA5LjEwNS05LjA5NSA5LjE4NCAyLjgxIDIuODEgOS4xMTItOS4xOTIgOS4xOCA5LjF6Ii8+PC9zdmc+) !important; filter: invert(1); } AnnaSofia 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rebeccaheywood Posted May 3, 2021 Author Share Posted May 3, 2021 On 5/1/2021 at 8:49 AM, tuanphan said: Add to Design > Custom CSS /* Menu text to burger */ #mobileMenuLink ul>li.active-link { visibility: hidden; } #mobileMenuLink ul>li.active-link a:before { visibility: visible; content: ""; background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yNCAxOHYxaC0yNHYtMWgyNHptMC02djFoLTI0di0xaDI0em0wLTZ2MWgtMjR2LTFoMjR6IiBmaWxsPSIjMTA0MGUyIi8+PHBhdGggZD0iTTI0IDE5aC0yNHYtMWgyNHYxem0wLTZoLTI0di0xaDI0djF6bTAtNmgtMjR2LTFoMjR2MXoiLz48L3N2Zz4=); width: 30px; height: 30px; display: block; margin-right: 5px !important; background-position: right center; background-repeat: no-repeat; float: right; margin-top: 5px; } /* Burger to X icon */ .menu-open + div #mobileMenuLink ul>li.active-link a:before { background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMjMuOTU0IDIxLjAzbC05LjE4NC05LjA5NSA5LjA5Mi05LjE3NC0yLjgzMi0yLjgwNy05LjA5IDkuMTc5LTkuMTc2LTkuMDg4LTIuODEgMi44MSA5LjE4NiA5LjEwNS05LjA5NSA5LjE4NCAyLjgxIDIuODEgOS4xMTItOS4xOTIgOS4xOCA5LjF6Ii8+PC9zdmc+) !important; filter: invert(1); } Thats worked 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