Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( in_category( 'new-events' ) && in_category( 'old-events' ) ) {?>
- //styling for this category
- <style type="text/css">
- #eventLocation {
- background:url(/wp-content/themes/mytheme/images/myimage2.png) no-repeat left 2px;
- }
- </style>
- <?php } elseif ( in_category( 'new-events' )) {?>
- //styling for this category
- <style type="text/css">
- #eventLocation {
- background:url(/wp-content/themes/mytheme/images/myimage1.png) no-repeat left 2px;
- }
- </style>
- <?php } else { ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement