katep Posted March 22, 2020 Share Posted March 22, 2020 Site URL: http://katepullendraws.com Hello! I was wondering if someone could help me change my navigation links to images? I have a hand-lettered logo, and so wanted all my navigation to represent a similar style. My site: katepullendraws.com. Thank you! Link to comment
tuanphan Posted March 22, 2020 Share Posted March 22, 2020 Add to Home > Design > custom CSS .nav-item [href="/shop"] span:before { content: ""; background-image: url(https://beaverhero.com/wp-content/uploads/2020/02/facebook-chatbox-min.png); background-size: cover; background-repeat: no-repeat; width: 30px; height: 30px; display: block; } Repeat this for other items. Replace /shop with other url slug katep 1 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
katep Posted March 22, 2020 Author Share Posted March 22, 2020 Thanks so much! Is there anyway I can get just the image to show, instead of the standard navigation (at the moment it sits on top)? Link to comment
tuanphan Posted March 22, 2020 Share Posted March 22, 2020 Edit above code to .nav-item [href="/shop"] span { visibility: hidden; } .nav-item [href="/shop"] span:before { content: ""; background-image: url(https://beaverhero.com/wp-content/uploads/2020/02/facebook-chatbox-min.png); background-size: cover; background-repeat: no-repeat; width: 30px; height: 30px; display: block; visibility: visible; } 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
tommiatke Posted April 12, 2021 Share Posted April 12, 2021 On 3/22/2020 at 8:07 PM, tuanphan said: Edit above code to .nav-item [href="/shop"] span { visibility: hidden; } .nav-item [href="/shop"] span:before { content: ""; background-image: url(https://beaverhero.com/wp-content/uploads/2020/02/facebook-chatbox-min.png); background-size: cover; background-repeat: no-repeat; width: 30px; height: 30px; display: block; visibility: visible; } Hi @tuanphan, does this could work for the links of a Folder? For example, if ive grouped my website's pages into 2 folders, could I use this code to replace the link of a folder with a logo/image? Thanks Tom Link to comment
tuanphan Posted April 14, 2021 Share Posted April 14, 2021 On 4/13/2021 at 3:45 AM, tommiatke said: Hi @tuanphan, does this could work for the links of a Folder? For example, if ive grouped my website's pages into 2 folders, could I use this code to replace the link of a folder with a logo/image? Thanks Tom Can you share link to your site? I can tweak code for folder easier 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
tommiatke Posted April 14, 2021 Share Posted April 14, 2021 6 hours ago, tuanphan said: Can you share link to your site? I can tweak code for folder easier Hi @tuanphan, Sure! https://bellflower-jaguar-h6pd.squarespace.com/ Password: cm Link to comment
tuanphan Posted April 15, 2021 Share Posted April 15, 2021 17 hours ago, tommiatke said: Hi @tuanphan, Sure! https://bellflower-jaguar-h6pd.squarespace.com/ Password: cm Try this CSS a.header-nav-folder-title[href="/cmf-folder"] { visibility: hidden; } a.header-nav-folder-title[href="/cmf-folder"]:before { background-image: url(https://beaverhero.com/wp-content/uploads/2020/02/facebook-chatbox-min.png) !important; background-size: contain; background-repeat: no-repeat; width: 200px; height: 30px; content: ""; display: inline-block; visibility: visible; position: absolute; } 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
TheLaunchRoom Posted May 17, 2021 Share Posted May 17, 2021 On 4/15/2021 at 3:39 PM, tuanphan said: Try this CSS a.header-nav-folder-title[href="/cmf-folder"] { visibility: hidden; } a.header-nav-folder-title[href="/cmf-folder"]:before { background-image: url(https://beaverhero.com/wp-content/uploads/2020/02/facebook-chatbox-min.png) !important; background-size: contain; background-repeat: no-repeat; width: 200px; height: 30px; content: ""; display: inline-block; visibility: visible; position: absolute; } Any idea on how to make this work for navigation items that are external links? Link to comment
tuanphan Posted May 18, 2021 Share Posted May 18, 2021 23 hours ago, TheLaunchRoom said: Any idea on how to make this work for navigation items that are external links? Can you share site url? We can check class name easier 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
TheLaunchRoom Posted May 18, 2021 Share Posted May 18, 2021 6 hours ago, tuanphan said: Can you share site url? We can check class name easier ultimatetintingcheshire.co.uk (want to replace 'Ginger Graphics' nav link to a logo) Link to comment
tuanphan Posted May 19, 2021 Share Posted May 19, 2021 17 hours ago, TheLaunchRoom said: ultimatetintingcheshire.co.uk (want to replace 'Ginger Graphics' nav link to a logo) Replace whote text "In partnership with GINGER GRAPHICS" or "GINGER GRAPHICS" only? 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
TheLaunchRoom Posted May 19, 2021 Share Posted May 19, 2021 7 minutes ago, tuanphan said: Replace whote text "In partnership with GINGER GRAPHICS" or "GINGER GRAPHICS" only? Replace the whole text, I've got the image of the logo and 'in partnership with' ready to go. Thanks! Link to comment
tuanphan Posted May 20, 2021 Share Posted May 20, 2021 On 5/19/2021 at 4:47 PM, TheLaunchRoom said: Replace the whole text, I've got the image of the logo and 'in partnership with' ready to go. Thanks! Add to Design > Custom CSS /* Replace nav link with image */ .header-nav-item a { background-image: url(https://cdn.pixabay.com/photo/2020/07/06/04/28/stone-shapes-5375372__340.jpg); background-size: 100px; display: block; height: 100px; color: transparent; background-repeat: no-repeat; } 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
TheLaunchRoom Posted May 20, 2021 Share Posted May 20, 2021 4 hours ago, tuanphan said: Add to Design > Custom CSS /* Replace nav link with image */ .header-nav-item a { background-image: url(https://cdn.pixabay.com/photo/2020/07/06/04/28/stone-shapes-5375372__340.jpg); background-size: 100px; display: block; height: 100px; color: transparent; background-repeat: no-repeat; } We've got the image but how to do we hide the existing text? Link to comment
tuanphan Posted May 21, 2021 Share Posted May 21, 2021 20 hours ago, TheLaunchRoom said: We've got the image but how to do we hide the existing text? I think the code should hide the text. It doesn't work? 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
wearecreamsugar Posted May 15, 2023 Share Posted May 15, 2023 On 3/22/2020 at 3:07 AM, tuanphan said: Edit above code to .nav-item [href="/shop"] span { visibility: hidden; } .nav-item [href="/shop"] span:before { content: ""; background-image: url(https://beaverhero.com/wp-content/uploads/2020/02/facebook-chatbox-min.png); background-size: cover; background-repeat: no-repeat; width: 30px; height: 30px; display: block; visibility: visible; } Hi tuanphan I've tried to implement this but it doesn't work. Can you please take a look at https://www.chc.works/? I want the 'Marvin by CHC' nav link to display the image I uploaded Link to comment
tuanphan Posted May 19, 2023 Share Posted May 19, 2023 On 5/16/2023 at 6:18 AM, wearecreamsugar said: Hi tuanphan I've tried to implement this but it doesn't work. Can you please take a look at https://www.chc.works/? I want the 'Marvin by CHC' nav link to display the image I uploaded Use this CSS code header#header [href="/marvin-by-chc"] { background-image: url(https://cdn.pixabay.com/photo/2023/05/08/11/18/hair-7978357_1280.jpg); color: transparent !important; background-size: cover; background-repeat: no-repeat; background-position: center center; } 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
HOMENCREATIVE Posted January 23 Share Posted January 23 Website: www.cafe-club.squarespace.com password: cafeclub @tuanphan I'm trying to replace my main navigation links with a custom hand-drawn image instead of a font. I tried using the custom CSS provided above but nothing is happening. I uploaded the .png files to custom CSS and used this code: .nav-item [href="/menu"] span { visibility: hidden; } .nav-item [href="/menu"] span:before { content: ""; background-image: url(https://static1.squarespace.com/static/658da47d0f5cf817eeeb2f99/t/65b02581c6873a3f75bab162/1706042753513/CUISINE.png); background-size: cover; background-repeat: no-repeat; width: 30px; height: 30px; display: block; visibility: visible; } Link to comment
tuanphan Posted January 28 Share Posted January 28 On 1/24/2024 at 3:55 AM, HOMENCREATIVE said: Website: www.cafe-club.squarespace.com password: cafeclub @tuanphan I'm trying to replace my main navigation links with a custom hand-drawn image instead of a font. I tried using the custom CSS provided above but nothing is happening. I uploaded the .png files to custom CSS and used this code: .nav-item [href="/menu"] span { visibility: hidden; } .nav-item [href="/menu"] span:before { content: ""; background-image: url(https://static1.squarespace.com/static/658da47d0f5cf817eeeb2f99/t/65b02581c6873a3f75bab162/1706042753513/CUISINE.png); background-size: cover; background-repeat: no-repeat; width: 30px; height: 30px; display: block; visibility: visible; } Use this code header#header [href="/menu"] { background-image: url(https://static1.squarespace.com/static/658da47d0f5cf817eeeb2f99/t/65b02581c6873a3f75bab162/1706042753513/CUISINE.png); color: transparent !important; background-size: cover; background-repeat: no-repeat; background-position: center center; } 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
HOMENCREATIVE Posted February 1 Share Posted February 1 @tuanphan thank you it worked! How do I adjust the size of the image? Link to comment
tuanphan Posted February 4 Share Posted February 4 On 2/1/2024 at 7:59 AM, HOMENCREATIVE said: @tuanphan thank you it worked! How do I adjust the size of the image? background-size: cover; You can use cover contain or fixed value, eg: 100px 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
HOMENCREATIVE Posted February 5 Share Posted February 5 @tuanphan thank you so much, it works!! Link to comment
HOMENCREATIVE Posted February 13 Share Posted February 13 @tuanphan I got the resizing of the image to work, but I'm struggling to figure out how to increase the wrapper size so that it doesn't cut off part of the image on the top/bottom (see far right 'Souvenir Shop') See image below. www.cafe-club.squarespace.com password: cafeclub 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