sarahprime Posted August 25, 2022 Share Posted August 25, 2022 Site URL: https://www.mirboonorth.com/ Is it possible to replace text in the navigation with an icon? I would like to replace the word 'Search' (which is a custom page, not the standard 'Search' page offered by Squarespace, with a magnifying glass icon. I have tried the Alt code for a magnifying glass but it isn't recognised. Link to comment
tuanphan Posted August 26, 2022 Share Posted August 26, 2022 Add to Design > Custom CSS. Replace with search image url header.Header [href="/search-website"] { background-image: url(https://cdn.pixabay.com/photo/2022/07/31/20/00/little-boy-7356705__480.jpg); background-size: contain; background-repeat: no-repeat; background-position: center center; color: transparent !important; } 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
sarahprime Posted September 12, 2022 Author Share Posted September 12, 2022 Thank you. Do you have a recommendation for image dimensions? Link to comment
sarahprime Posted September 12, 2022 Author Share Posted September 12, 2022 I tried with this link https://drive.google.com/file/d/1N2XhuvbB_WK42LGpJWD6s3J3PGiZwsCJ/view?usp=sharing but it just made the word 'Search' transparent Link to comment
tuanphan Posted September 17, 2022 Share Posted September 17, 2022 On 9/12/2022 at 10:38 AM, sarahprime said: I tried with this link https://drive.google.com/file/d/1N2XhuvbB_WK42LGpJWD6s3J3PGiZwsCJ/view?usp=sharing but it just made the word 'Search' transparent Use a direct url, the gg drive won't work. You can upload image to Squarespace site to get url https://support.squarespace.com/hc/en-us/articles/205813928-Uploading-and-managing-files suppose your file name is search.jpeg when you uploaded it, it will have url: https://www.mirboonorth.com/s/search.jpeg 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
sarahprime Posted September 24, 2022 Author Share Posted September 24, 2022 Thank you! If I wanted to add the search icon to the secondary navigation, how would I tweak the code? Link to comment
tuanphan Posted September 24, 2022 Share Posted September 24, 2022 6 hours ago, sarahprime said: Thank you! If I wanted to add the search icon to the secondary navigation, how would I tweak the code? Before or after button? 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
tuanphan Posted September 26, 2022 Share Posted September 26, 2022 10 hours ago, sarahprime said: After 🙂 You can add item in Secondary Nav, then we give code to change it to icon 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
sarahprime Posted September 26, 2022 Author Share Posted September 26, 2022 I've moved it to secondary nav - Discover Mirboo North | South Gippsland, Victoria Link to comment
tuanphan Posted September 27, 2022 Share Posted September 27, 2022 17 hours ago, sarahprime said: I've moved it to secondary nav - Discover Mirboo North | South Gippsland, Victoria Use this code header.Header [href="/search-website"] { background-image: url(https://cdn.pixabay.com/photo/2022/07/31/20/00/little-boy-7356705__480.jpg); background-size: contain; background-repeat: no-repeat; background-position: center center; color: transparent !important; background-color: transparent !important; } 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
sarahprime Posted September 29, 2022 Author Share Posted September 29, 2022 Thank you so much! tuanphan 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