Tagged: x
-
AuthorPosts
-
September 1, 2016 at 6:33 pm #1157614
I’ve been attempting to replace all the bullets on my site with Font Awesome icons and through some suggestions here in the forums I’ve gotten pretty close, but not quite there. The code I’ve added to my child theme’s CSS is as follows:
.x-text ul li:before { content: "\f101"; padding-right: 5px; color:#007ca9; font-family: 'fontAwesome'; }
This is placing the chosen icons in the right place, BUT, it’s leaving the default bullet in place, so now I’ve essentially got two bullets. You can see any example on this page, both at top right and bottom of the page: http://cerulean.pmcgdev.com/services/arctic-cryotherapy/whole-body-arctic-cryotherapy/
September 1, 2016 at 9:49 pm #1157893Hello There,
Thanks for writing in! It seems that your code is working in displaying the icon. You just forgotten to remove the default bullet. Please update your code and use this instead:
.x-text ul li { list-style: none; } .x-text ul li:before { content: "\f101"; padding-right: 5px; color:#007ca9; font-family: 'fontAwesome'; }
We would loved to know if this has work for you. Thank you.
September 1, 2016 at 9:55 pm #1157899Perfect, that fixed that problem, though that leads to a related follow up question – how do I adjust the second line alignment for list items that wrap? It appears that the wrapping is still lining up to the old, no longer visible bullets.
September 1, 2016 at 11:22 pm #1157979Hi there,
Let’s update the code a bit :
.x-text ul li { list-style: outside none none; position: relative; } .x-text ul li::before { color: #007ca9; content: "\f101"; font-family: "FontAwesome"; left: -15px; position: absolute; }
Hope this helps.
September 2, 2016 at 12:07 am #1158016That did the trick – thank you so much for the help!
September 2, 2016 at 12:08 am #1158018You are welcome!
Glad that it helped. Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Thanks for using X.
Cheers!
September 6, 2016 at 2:27 pm #1163443I have another question on this topic – is it possible to make the secondary (indented) bullets a different icon and/or color?
September 6, 2016 at 4:41 pm #1163557Hi again,
Can you please let us know on which page you’re using indented bullets so we can take a look?
Thanks!
September 6, 2016 at 4:56 pm #1163574Sure, here’s a page with a TON of them 🙂
The goal is just to create some differentiation between the main bullet and the sub-bullets.
September 7, 2016 at 12:25 am #1163988Hi there,
Please add this code :
.x-text ul ul li::before { color: red; content: "\f101"; font-family: "FontAwesome"; left: -15px; position: absolute; }
Hope it helps.
September 7, 2016 at 9:57 am #1164587Thank you, that was spot on!
September 7, 2016 at 10:51 am #1164667You’re most welcome 🙂
-
AuthorPosts