Jefferson0123 Posted October 19, 2023 Share Posted October 19, 2023 I have an issue of random en dashes appearing on top of each team member profile pic. This issue occured after I added custom CSS code for changing bullet lists to dashed lists instead. I have pasted the following code in custom css of my site: /* change the bullet point symbol to a unicode character */ li>*:first-child::before{content:"—"!important;color:#000000} /* move bullet list to left */ ul { padding-left: 1.5rem } I am happy with how the dashed bullet list looks but random dashes appear on top of each team member profile of the website. I have dashed lists looking perfect where they're needed on various pages of the website. The team profiles page does not include any bullet lists. Can anyone help me fix this issue? Help would be greatly appreciated. Link to comment
Ziggy Posted October 20, 2023 Share Posted October 20, 2023 Unordered Lists (<ul>) get used for more than just bullet points, the list section that you are using for the Team photos is one of those, so with your style code targeting all <ul> and <li> it will impact more than you want. You probably want to target it just to paragraph text, which is usually achieved by adding an additional ID of p to your code. I can't tell exactly what you need as I would need to see your website for that. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Jefferson0123 Posted October 20, 2023 Author Share Posted October 20, 2023 Cheers for looking into this Ziggy. Here's the site https://olive-glockenspiel-gbhp.squarespace.com and the preview password is Scarysolicitors1234 Hopefully it's a simple fix. I'm happy to have some target set up that only the Meet the Team page doesn't use the dashed bullet list styling. Link to comment
Solution Ziggy Posted October 20, 2023 Solution Share Posted October 20, 2023 Try this code as an alternative: // change the bullet point symbol ul[data-rte-list] li>*:first-child::before { content: "—" !important; color:#000000; } Jefferson0123 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Ziggy Posted October 20, 2023 Share Posted October 20, 2023 BTW it looks like you have "display source code" checked on this code block which is displaying the code as text rather than rendering it as you'd want. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Jefferson0123 Posted October 20, 2023 Author Share Posted October 20, 2023 (edited) That has fixed the issue – thank you so much! What line of code shall I insert below the color line if I wanted to have the dashed list aligned to the left with the text above? Thanks for the shout about the Solicitors Regulation Authority logo for the footer of website! Edited October 20, 2023 by Jefferson0123 Ziggy 1 Link to comment
Ziggy Posted October 20, 2023 Share Posted October 20, 2023 Try this: ul[data-rte-list] li>*:first-child::before { margin-left: -55px; } Jefferson0123 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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