pablocattaneo
2/22/2016 - 6:32 PM

Agregar una custom class al body en Wordpress Add custom class to the body in Wordpress

Agregar una custom class al body en Wordpress Add custom class to the body in Wordpress

<?php  
	$id_cat_notas_la_plaza = get_category_by_slug( 'notas-la-plaza-de-tu-mascotas' );
	if ( in_category( $id_cat_notas_la_plaza )){ 
		body_class('single-notas-la-plaza-de-tu-mascotas'); 
	}else{
	  body_class();
	} 
?>

<body <?php get_template_part('file_name_where_the_last_code_was_wrote'); ?> >