PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Categories as CSS class on result_block

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Categories as CSS class on result_block

    Is there any way to add css classes for the categories that a result is from?
    Ex:
    HTML Code:
    <div class="result_block categoryx categoryz categoryw">
    This would enable visual customization by category, say by adding a small icon to highlight the category association.

    I thought v6 would enable us to customize the results display like this, but I can't seem to find it anywhere.

  • #2
    The CSS doesn't vary per category. So this is not an option.

    Comment


    • #3
      CSS Categories

      I'm not sure I understand.

      I thought it would be something like:

      HTML Code:
      <div class="result_block $categories">
      since the categories are already being displayed just after the title.

      Here's to hoping

      Comment


      • #4
        Category text is placed in the category CSS class. Like this.
        <span class="category">[Category Name]</span>

        And the CSS doesn't vary per category. If you wanted it to then you would need to make some code changes.

        Comment

        Working...
        X