WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fallenartist
    Member
    Posted 1 year 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!

    Thanks.

    http://wordpress.org/extend/plugins/custom-post-widget/

  2. designbyddc
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic