How to Change or Remove Numbers and Bullets in Easy Table of Contents
Content
Many users of the Easy Table of Contents plugin want to customize the appearance of their table of contents, particularly the numbers or bullets that appear next to each list item. This is a common request for branding purposes, design consistency, or to avoid confusion when headings already contain numbers.
Based on community discussions, here are the most effective ways to manage the counters and bullets in your table of contents.
How to Remove Numbers Entirely
The simplest way to remove numbers from your table of contents is to use the built-in plugin setting.
- Navigate to your WordPress admin dashboard.
- Go to Settings > Table of Contents.
- In the General section, locate the Counter option.
- Select None from the dropdown menu.
- Click Save Changes.
This will remove all numbering from your table of contents, leaving just the plain text headings.
Using Custom CSS for Bullet Points
If you want to replace numbers with custom bullet points (like circles or dashes), you will need to add some custom CSS. This is because, while the 'None' option removes numbers, it does not automatically add bullets. The plugin has added some built-in bullet styles like 'Hyphen' and 'Dot' in updates, but for full customization, CSS is required.
Here is a common CSS snippet used by the community to add disc bullets:
#ez-toc-container ul.ez-toc-list li {
list-style-type: disc;
}To add this CSS to your site:
- Go to Appearance > Customize in your WordPress dashboard.
- Select Additional CSS.
- Paste the CSS code into the text area.
- Publish your changes.
You can change disc to other values like circle, square, or even use a custom image.
Why Your Custom CSS Might Not Be Working
If you've added CSS but don't see the changes, a few things could be happening:
- CSS Specificity: Your theme's CSS might be overriding your custom styles. Try making your CSS selector more specific, for example:
#ez-toc-container.counter-none ul li. - Caching: Clear your browser cache and any caching plugins on your site to see the changes.
- Plugin Conflict: Another plugin might be interfering. Try temporarily deactivating other plugins to test.
Troubleshooting Common Issues
- Numbers in Headings Appear in TOC: If you manually add numbers to your headings (e.g., '1. Introduction'), these will appear in the table of contents. The plugin cannot automatically strip these numbers out. The solution is to either remove the numbers from your headings or set the counter to 'None'.
- Widget Counters Not Showing: Some users have reported that counter settings do not apply to the sidebar widget. This could be due to a plugin conflict. Troubleshoot by deactivating other plugins to see if the issue is resolved.
- Numbers are Hyperlinks: By default, the numbers are part of the clickable link. To unlink just the numbers while keeping the text as a link, more advanced CSS is needed.
Customizing your table of contents with these methods should help you achieve a look that better matches your website's design and improves the user experience for your readers.
Related Support Threads Support
-
Add Custom Counter Stylehttps://wordpress.org/support/topic/add-custom-counter-style/
-
How to create unorderd list insted of Numeric counter?https://wordpress.org/support/topic/how-to-create-unorderd-list-insted-of-numeric-counter/
-
Reversing number order.https://wordpress.org/support/topic/reversing-number-order/
-
Using a hyphen instead of numbershttps://wordpress.org/support/topic/using-a-hyphen-instead-of-numbers/
-
Numberhttps://wordpress.org/support/topic/number-5/
-
Numbers and RTLhttps://wordpress.org/support/topic/numbers-and-rtl/
-
Any plan to add “Disable unicode” option in the future?https://wordpress.org/support/topic/any-plan-to-add-disable-unicode-option-in-the-future/
-
How to show bullet points instead of numbershttps://wordpress.org/support/topic/how-to-show-bullet-points-instead-of-numbers/
-
Remove the anchor link id tag and #https://wordpress.org/support/topic/remove-the-anchor-link-id-tag-and/
-
Add small dot instead of numbershttps://wordpress.org/support/topic/add-small-dot-instead-of-numbers/
-
Hide Numberhttps://wordpress.org/support/topic/hide-number/
-
Counter bullets feature/tweakhttps://wordpress.org/support/topic/counter-bullets-feature-tweak/
-
Not including numbers added in headings to table of contentshttps://wordpress.org/support/topic/not-including-numbers-added-in-headings-to-table-of-contents/
-
Use Number rather than titles in anchorshttps://wordpress.org/support/topic/use-number-rather-than-titles-in-anchors/
-
Bullet style counterhttps://wordpress.org/support/topic/bullet-style-counter/
-
How to disable links in numbers?https://wordpress.org/support/topic/how-to-disable-links-in-numbers/
-
Start a href link in the title, not the list numbershttps://wordpress.org/support/topic/start-a-href-link-in-the-title-not-the-list-numbers/
-
Bulletpoint instead of numeric counterhttps://wordpress.org/support/topic/bulletpoint-instead-of-numeric-counter/
-
Exclude numbers when generating anchor tag IDhttps://wordpress.org/support/topic/exclude-numbers-when-generating-anchor-tag-id/
-
Numbering counter doesn’t show up..https://wordpress.org/support/topic/numbering-counter-doesnt-show-up/
-
Change Numbers to Bullets with CSShttps://wordpress.org/support/topic/change-numbers-to-bullets-with-css/