[buddypress-trac] [BuddyPress] #4929: bp_get_the_body_class ignoring other plugins' classes on BP-specific pages

buddypress-trac noreply at wordpress.org
Mon Sep 23 23:33:49 UTC 2013


#4929: bp_get_the_body_class ignoring other plugins' classes on BP-specific pages
-------------------------+-----------------------------
 Reporter:  DJPaul       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Core         |     Version:  1.7
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------------

Comment (by unsalkorkmaz):

 For people looking temporary solution:

 {{{
 add_action("wp_footer", "firmasite_buddypress_wpadminbar_fix");
 function firmasite_buddypress_wpadminbar_fix(){
         if (is_buddypress() && is_admin_bar_showing()) { ?>
         <script>
         jQuery(document).ready(function() {
                 jQuery("body").addClass("admin-bar");
         });
         </script>
         <?php
         }
 }
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4929#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list