WordPress.org

Forums

Custom Post Widget
[resolved] Idea/Request: Custom classes for each Content Block (3 posts)

  1. psteinweber
    Member
    Posted 1 year ago #

    Hi Johan,

    I came up with another "nice to have" feature during developing a site: having the possibility to assign a custom class to every content block would be great.
    Of course there is the possibility to assign a class to the whole widget area on creating that, but in some cases that's not enough.

    Just a thought.

    Philipp

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

  2. Johan van der Wijk
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Philipp,

    All content blocks that you insert to the widget areas on your site will get a unique ID such as id="custom_post_widget-17" which allows you to style them individually.

    If you are using the shortcode you can add the parameter 'class' to it and choose your own style like this: [content_block id=198 class=thisismyownclass]

    I hope this helps!

  3. psteinweber
    Member
    Posted 1 year ago #

    Wasn't aware of that. It does help a lot, thanks!

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

Tags

No tags yet.