Title: Custom class names
Last modified: August 21, 2016

---

# Custom class names

 *  Resolved [fallenartist](https://wordpress.org/support/users/fallenartist/)
 * (@fallenartist)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/custom-class-names/)
 * Excellent plugin for custom widgets I use in my theme!
 * However, one important functionality currently missing is the ability to add 
   custom class names to Content Blocks for styling purposes or script calls.
 * I use another plugin to do just that but it only allows to add class names after
   content blocks are added to a widget list, meaning you have to re-type classes
   each time.
 * So, a Custom Class Name field under Content Block editing window would be awesome!
 * Thanks.
 * [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [dinoq](https://wordpress.org/support/users/designbyddc/)
 * (@designbyddc)
 * [13 years ago](https://wordpress.org/support/topic/custom-class-names/#post-3734238)
 * If you are inserting them into a post or page you can add a class or multiple
   classes like this:
 * [content_block id=48 class=”class1 class-2″]
 * That will allow you to target that block specifically or as a group.
 * This works with the Thematic theme and should work with others. Hope it helps.
 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-class-names/#post-3734271)
 * I did not know that it was possible to add a class in the shortcode 🙂 Thanks
   designbyddc for the excellent tip!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom class names’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

## Tags

 * [class name](https://wordpress.org/support/topic-tag/class-name/)
 * [classes](https://wordpress.org/support/topic-tag/classes/)
 * [content block](https://wordpress.org/support/topic-tag/content-block/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)

 * 2 replies
 * 3 participants
 * Last reply from: [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/custom-class-names/#post-3734271)
 * Status: resolved