CSS selectors for post listings
-
As an extension of a previous topic about body classes, how would you add the directory name and/or the categories as a class to the post listing displays? It is not possible to identify the post from different directories in the single location view. ./single-location/ ?
The directory type data-listing_type=”” is in the filter, but that can’t seem to be used in the css as it is not in a parent div.
.current .directorist-type-nav__link[data-listing_type=”my-directory”] > .directorist-listing-single__thumb {
display:none;} does not workTrying to add the directory type to the div class=”directorist-listing-single directorist-listing-card directorist-listing-has-thumb directorist-featured”
The code is adding the featured class.
It does not appear that the code is adding any other post info such as id either, whereas this is done for wordpress posts along with categories.
- The topic ‘CSS selectors for post listings’ is closed to new replies.