<?php
add_action( 'facetwp_scripts', function() {
?>
<style>
.fs-label-wrap {
display: none; /* Hide the label and arrow button */
}
.fs-dropdown {
position: initial; /* Undo position: absolute */
border-top: 1px solid #ddd; /* Add missing border-top */
}
.fs-dropdown.fs-hidden {
display: block; /* Keep the options visible */
}
/* Optionally adapt the fSelect's height (default is 200px;)
.fs-dropdown .fs-options {
max-height: 300px;
}
*/
/* Optionally adapt the fSelect's width to prevent a horizontal scrollbar
.fs-wrap {
width: 300px;
}
*/
/* Optionally make the choice labels wrap to the next line
.facetwp-type-fselect .fs-option .fs-option-label {
white-space: normal;
}
*/
/* Optionally make sure words within choice labels are not breaking to the next line
.facetwp-type-fselect .fs-option {
word-break: unset;
}
*/
</style>
<?php
}, 100 );