Different Style For H2/H3 With Different CSS Class

Skip to content
WordPress.org

Forums

  • Welcome to Support
  • Guidelines
  • Get involved
  • Log in
  • Welcome to Support
  • Guidelines
  • Get involved
  • Log in
Skip to content

Home / Plugin: Easy Table of Contents / Different style for H2/H3 with different CSS class

Search for: Search forums
  • Resolved Tibow

    (@pyho)

    2 years, 10 months ago

    Hello!

    First I’d like to say that I really appreciate your plugin. And have had no difficulties tu use it.

    At this point I’d like to use CSS to style diffrently the links to H2 and links to H3. So I’m looking for a way to have a CSS class for ez-toc-link element, according if they point to an H2 or H3…

    Is there a way to make it ? Thanks a lot

    • This topic was modified 2 years, 10 months ago by Tibow.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Steven

    (@shazahm1hotmailcom)

    2 years, 9 months ago

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Different style for H2/H3 with different CSS class’ is closed to new replies.
  • Easy Table of Contents
  • Frequently Asked Questions
  • Support Threads
  • Active Topics
  • Unresolved Topics
  • Reviews

Tags

  • css-class
  • heading
  • link class
  • In: Plugins
  • 1 reply
  • 2 participants
  • Last reply from: Steven
  • Last activity: 2 years, 9 months ago
  • Status: resolved

Từ khóa » H2 Vs H3 Css