I have a client built site that I am adding some functionality too - I don't usually develop using Wordpress. They have built pages using Visual Composer to display posts from varying categories
If the post is within a certain category 'Deals' I want to do stuff … non-working code (in functions.php) below:
function deals () {
if ( in_category('Deals') ) {
echo '<style>.entry-thumb{display: none !important;}</style>';
}
}
Calling function from within child theme page template.
Any help would be great thanks