Site logo

Archived topic

Best way to apply css to a single blog post

3 replies · Started by Eric on August 2, 2017

Viewing posts 1–4 of 4

Hello, I'm wondering if there's an easy or ideal way to apply CSS only to a single page.

Problem: I use a Table of Contents plugin that shows an expanded TOC at the top of an article. For most articles, this is desired, but one, in particular, has a rather long TOC and I'd like to auto hide it.

I found the CSS code, but don't know how to only apply it to that single post.

Thanks in advance.

Thanks! I knew of that plugin, but didn't realize it allowed for single post customization!

No problem!

Keep in mind that the meta box won't work on index pages (blog, archive etc) but it should work well for posts :)

This archived topic is closed to new replies.