Hey @everyone,
I’m using the Primary Attribute section to display various attributes that I’ve marked as optional. However, I noticed that if a user doesn’t complete any of these optional fields, the parent container still renders on the frontend of the Vendor profile and Listing pages, leaving behind an unwanted empty placeholder.
I’ve been tinkering with this and came up with a CSS solution that fixes it. Sharing it here in case it’s useful for anyone else, though; I also think this would be a great addition to HivePress core! ![]()
/* Hide Primary Attributes container if optional attributes are left unfilled */
.hp-vendor__attributes--primary:not(:has(> *:not(:empty))),
.hp-listing__attributes--primary:not(:has(> *:not(:empty))) {
display: none !important;
}
Cheers,
Chris ![]()