Alright, it’s not overly easy, but it’s do-able.
First we need to add some custom PHP – this plugin is good for adding it: https://wordpress.org/plugins/code-snippets/
function generate_dequeue_scripts() {
// If the category ID is 79, dequeue masonry
if ( is_category( '79' ) ) :
wp_dequeue_script( 'blog-scripts' );
wp_dequeue_script( 'jquery-masonry' );
wp_dequeue_script( 'blog-imagesloaded' );
wp_dequeue_style( 'blog-styles' );
endif;
}
add_action( 'wp_print_scripts', 'generate_dequeue_scripts', 100 );
add_action( 'wp_enqueue_scripts', 'generate_dequeue_scripts', 100 );
You’ll need to replace “79” with the ID of your category.
To do multiple categories, you can do this: if ( is_category( '79' ) || is_category( '80' ) || is_category( '81' ) ) :
Now you’ll need to add a little bit of custom CSS:
.category-79 .page-header,
.category-79 .inside-article {
margin-right: 0;
}
Again, you’ll have to change the ID.
Hope this helps π