Created
February 22, 2016 18:32
-
-
Save pablocattaneo/62c2f8dc0472239a9233 to your computer and use it in GitHub Desktop.
Agregar una custom class al body en Wordpress
Add custom class to the body in Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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'); ?> > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment