Documentation > Developers > Filter Examples > Disable Transparency of Non-Selected Images in Approved Collections

Disable Transparency of Non-Selected Images in Approved Collections

/**
 * 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)

Need help?

If you couldn’t find what you were looking for and need more assistance, please get in touch with us directly and we’re happy to help.