/**
* Disable transparency of non-selected images in approved collections
*
* If you want to target a specific collection (in this case with the ID 123), add the .collection-id-123 class, as seen below.
* Remove the .collection-id-123 class to target all approved collections.
*
* (This requires the Brand & Customize Pro module being installed and active)
*/
function my_custom_picu_styles( $custom_styles ) {
$custom_styles .= '.collection-id-123.status-approved .picu-collection .picu-gallery-item { opacity: 1; }';
return $custom_styles;
}
add_filter( 'picu_brand_customize_styles', 'my_custom_picu_styles' );
Code language: PHP (php)