Unfortunately I’m not able to log in and change any code – it’s against our forum policy (changing settings/code).
However, I just tested the code.
Here’s a category of mine with columns and masonry set in the Customizer: https://www.screencast.com/t/PUwIuqPXM
Then I added this code to target my blog
category. Of course, your code targets specific taxonomies.
add_action( 'wp', function() {
add_filter( 'generate_blog_masonry','tu_portfolio_masonry' );
} );
function tu_portfolio_masonry( $masonry ) {
if ( is_category( 'blog' ) ) {
return false;
}
return $masonry;
}
Now my blog
category looks like this: https://www.screencast.com/t/ie3UNPaT
So:
1. Columns and masonry are turned on in the Customizer.
2. I targeted my condition (category, in your cases taxonomies) and turned masonry off with the above code.
3. Now my one category no longer has masonry, but columns remain.
What happens if you target a single category like in my custom code? Does it work as intended?
Let me know 🙂