eventsmanager

Untitled

Nov 17th, 2013
533
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Removes the 'singular' class from the body class attribute on event pages
  4. */
  5. function remove_singular_body_class($wp_classes, $extra_classes) {
  6.   if( em_is_event_page() ) {
  7.     // Filter the body classes    
  8.     foreach($wp_classes as $key => $value) {
  9.       if ($value == 'singular') unset($wp_classes[$key]);
  10.     }
  11.   }
  12.   return $wp_classes;
  13. }
  14. add_filter('body_class', 'remove_singular_body_class', 20, 2);
  15. ?>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×