add class to custom attribute values
-
hello, I have added a custom attribute called status, the values are available, sale pending, sold, etc.
Is there a way to add a class name to each value? currently, there is only the one class:
<span class=”property_status”>Available!</span>
could you direct me to the file(s) that I can edit were I can add a span tag around the value and have the span get a class name added to it based on its slug…. and give an example of the code?
I am familiar with editing the property overview file but I am not sure how I can add this extra code.<?php if( !empty( $property['status'] ) ): ?> <span class="property_status"><?php echo $property['status']; ?></span> <?php endif; ?>
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘add class to custom attribute values’ is closed to new replies.