TerryQ Posted August 25, 2021 Share Posted August 25, 2021 Site URL: https://prism-hawk-fsfb.squarespace.com/ Hi Im trying to add a bold style using css to the first and 4th text items of a folder dropdown menu on mobile. I want to only apply it to one menu. Can anyone help? Thanks! Terry @tuanphan Link to comment
creedon Posted August 25, 2021 Share Posted August 25, 2021 Site-wide password please! Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
creedon Posted August 25, 2021 Share Posted August 25, 2021 Add the following to Design > Custom CSS. /* begin navigation menu items mobile bold some Version : 0.1d0 SS Version : 7.1 Dependancies : LESS By : Thomas Creedon < http://www.tomsWeb.consulting/ > */ [data-folder="/treatments"] { .header-menu-nav-item { &:nth-child( 2 ), /* ipl skin rejuv */ &:nth-child( 5 ) /* ipl acne */ { font-weight : bold; } } } /* end navigation menu items mobile bold some */ Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
TerryQ Posted August 26, 2021 Author Share Posted August 26, 2021 That worked perfectly, Thank you so much! creedon 1 Link to comment
Em-Rowsell Posted June 13, 2022 Share Posted June 13, 2022 On 8/25/2021 at 5:41 PM, creedon said: Add the following to Design > Custom CSS. /* begin navigation menu items mobile bold some Version : 0.1d0 SS Version : 7.1 Dependancies : LESS By : Thomas Creedon < http://www.tomsWeb.consulting/ > */ [data-folder="/treatments"] { .header-menu-nav-item { &:nth-child( 2 ), /* ipl skin rejuv */ &:nth-child( 5 ) /* ipl acne */ { font-weight : bold; } } } /* end navigation menu items mobile bold some */ Let us know how it goes. Would this work on a mobile nav? Link to comment
tuanphan Posted June 14, 2022 Share Posted June 14, 2022 18 hours ago, Em-Rowsell said: Would this work on a mobile nav? That code should work on mobile. If it doesn't work, please share link to your site, we can check easier creedon 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
kathrynnicoledesigns Posted August 24, 2022 Share Posted August 24, 2022 I'm trying to use this piece of code, but the data-folder doesn't seem to work, the code without targeting the specific folder works it's just when I try to target the specific folder it isn't working. Please can you help? [data-folder="/community-involvement-folder/"] { .header-nav-folder-item:nth-child(1),:nth-child(5) { font-weight : 700 !important; } Link to comment
creedon Posted August 24, 2022 Share Posted August 24, 2022 7 hours ago, kathrynnicoledesigns said: I'm trying to use this piece of code, but the data-folder doesn't seem to work Please post the URL for a page on your site where we can see your issue. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works. Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. We can then take a look at your issue. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. 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