Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCourtney Novits
3,113 PointsHow to delete bullet points added with Official Treehouse WordPress Widget
I have added the Treehouse Widget to my new portfolio http://www.courtney-novits.com/about-me/
Is there a simple way to delete the bullet points added next to each badge?
Thank you
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Courtney,
In wptreehouse-badges.css on line 82 you have:
.wptreehouse-badges li, .widget-area .wptreehouse-badges li {
list-style: none outside none;
/* other declarations omitted */
}
This would remove the bullet points from those badges.
However, in themes/salient/style.css on line 638 there is:
.main-content ul li {
list-style: disc outside none;
}
This adds bullets to any list items in the .main-content div which overrides the earlier css to remove them.
I'm not too familiar with wordpress. Are you able to edit "style.css"? Or is there another place wnere you're supposed to add your own css?
Adding the following should get rid of the bullets again:
.wptreehouse-badges .wptreehouse-badge {
list-style: none outside none;
}
Courtney Novits
3,113 PointsThanks! Jason Anello. That worked perfectly.
I added the code to style.css which I could access through the WordPress Dashboard by going to Appearances > Editor.
James Andrews
7,245 PointsIn wptreehouse-badges.css on line 82 you have:
.wptreehouse-badges li, .widget-area .wptreehouse-badges li {
list-style: none outside none !important;
/* other declarations omitted */
}
The important declaration means that this will not get over-ridden unless by another !important declaration.