Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Not Planned [XF1] New category field - css class to be added to this category and all children category

Discussion in 'Showcase Closed Suggestions' started by David Pugh, Aug 12, 2017.

  1. David Pugh

    David Pugh New Member Showcase

    Following on from this thread. Display/Hide custom fields in specified category/categories in article views

    Add the contents of this field to the classes of div.showcaseItemContainer element when an item is rendered.

    This would make writing entries into extra.css very much easier, if you have a lot of categories.


    category 1
    category 2
    category 3
    category 4
    category 5​
    category 6
    category 7​
    category 8
    category 9
    category 10

    Adding a class say "newclass1" into "category 2" would add class "newclass1" to div.showcaseItemContainer for categories "category 2" through to "category 7".

    Adding a class say "newclass2" into "category 3" would add class "newclass2" to div.showcaseItemContainer for categories "category 3" through to "category 5".

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.