Jump to content

Mobile Icon for Secondary Nav Issue

Recommended Posts

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:

image.thumb.png.98d3b1a4bb957b34cbde4a96434b6668.png

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

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;
}

 

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
  • 1 year later...
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.