Custom Post Widget
[resolved] Custom class names (3 posts)

  1. fallenartist
    Posted 3 years ago #

    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!



  2. designbyddc
    Posted 3 years ago #

    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.

  3. Johan van der Wijk
    Plugin Author

    Posted 3 years ago #

    I did not know that it was possible to add a class in the shortcode :) Thanks designbyddc for the excellent tip!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic