viccismarshall Posted August 5, 2020 Share Posted August 5, 2020 Site URL: https://pumpkin-harp-dd4x.squarespace.com/ Hi everyone, I hope someone can point me in the right direction please! It's driving me slightly crazy!! I have added custom CSS to include icons before each of the primary nav pages on the site as follows: .Header-nav--primary .Header-nav-item[href="/clients"]::before, .Mobile-overlay-nav--primary .Mobile-overlay-nav-item[href="/clients"]::before { background-image: url('https://static1.squarespace.com/static/5d8c929f2d89533d477b026f/t/5e60fc963720b572b5ccc364/1583414422430/OA+BUllet+Point.png'); } this works brilliantly - except that the secondary nav (which doesn't require an image for the main site as it is a button) doesn't have an image on the mobile menu: I have tried to add it in using .mobile-overlay-nav-item to no avail! Password to the site is oneadvisory Can anyone help please? Thank you in advance. Link to comment
tuanphan Posted August 5, 2020 Share Posted August 5, 2020 Add to Home > Design > Custom CSS .Mobile-overlay-nav-item[href="/get-in-touch"]:before { background-image: url(https://static1.squarespace.com/static/5d8c929f2d89533d477b026f/t/5e60fc963720b572b5ccc364/1583414422430/OA+BUllet+Point.png); content: ''; height: 15px; width: 15px; display: inline-block; background-size: contain; background-repeat: no-repeat; vertical-align: middle; margin-right: 5px; } viccismarshall 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
viccismarshall Posted August 5, 2020 Author Share Posted August 5, 2020 Thank you, that's brilliant! It works perfectly. Link to comment
TyDaPepperGuy Posted January 18, 2022 Share Posted January 18, 2022 @viccismarshall @tuanphan Sorry to resurrect such an old post however I would like to add custom icons to my mobile menu as well - please help me to understand how I can adapt this code for my own site. livingpeppers.ca, 7.0 Brine Thank you!! Link to comment
tuanphan Posted January 19, 2022 Share Posted January 19, 2022 On 1/18/2022 at 11:29 AM, TyDaPepperGuy said: @viccismarshall @tuanphan Sorry to resurrect such an old post however I would like to add custom icons to my mobile menu as well - please help me to understand how I can adapt this code for my own site. livingpeppers.ca, 7.0 Brine Thank you!! I see you solved with the code .Mobile-bar-menu { stroke: transparent; background-image: url('https://static1.squarespace.com/static/5cb53262fd679317365b92a2/t/5fbc94053ca23154c951e07e/1606194181383/baseline_view_list_black_24dp.png'); background-size: contain; background-repeat: no-repeat; background-position: right; background-color: transparent !important; height: 30px; margin-left: -5% } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment