Skip to content

How can you target h3 and h2 with the same styling? #210

Answered by hongducdev
montasim asked this question in Q&A
Discussion options

You must be logged in to vote

There are CSS classes attached to the ezTOC list, example class="ez-toc-heading-level-4".

These do not map directly to h1, h2, h3 …and will be different based on the eligible headings in the post content. But, if you are consistent in using the same headings for TOC items you could use those CSS classes for your target styling.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by montasim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants