Title: bbopbernard's Replies | WordPress.org

---

# bbopbernard

  [  ](https://wordpress.org/support/users/bbopbernard/)

 *   [Profile](https://wordpress.org/support/users/bbopbernard/)
 *   [Topics Started](https://wordpress.org/support/users/bbopbernard/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bbopbernard/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bbopbernard/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bbopbernard/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bbopbernard/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bbopbernard/favorites/)

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Clicking on WordPress calendar/archive widget breaks layout](https://wordpress.org/support/topic/clicking-on-wordpress-calendararchive-widget-breaks-layout/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years ago](https://wordpress.org/support/topic/clicking-on-wordpress-calendararchive-widget-breaks-layout/#post-5334610)
 * I’ve dug a little deeper. Is there a way to remove a single class from body_class()?
 * EDIT: Figured it out. Add the following to your functions.php.
 *     ```
       function remove_a_body_class($wp_classes)
       {
           foreach($wp_classes as $key => $value)
           {
               if ($value == 'date')
               {
                   unset($wp_classes[$key]);
               }
           }
   
           return $wp_classes;
       }
       add_filter('body_class', 'remove_a_body_class', 20, 2);
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Archives Page not centered](https://wordpress.org/support/topic/archives-page-not-centered/)
 *  [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years ago](https://wordpress.org/support/topic/archives-page-not-centered/#post-4825432)
 * I’ve dug a little deeper. Is there a way to remove a single class from body_class()?
 * EDIT: Figured it out. Add the following to your functions.php.
 *     ```
       function remove_a_body_class($wp_classes)
       {
           foreach($wp_classes as $key => $value)
           {
               if ($value == 'date')
               {
                   unset($wp_classes[$key]);
               }
           }
   
           return $wp_classes;
       }
       add_filter('body_class', 'remove_a_body_class', 20, 2);
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Archives Page not centered](https://wordpress.org/support/topic/archives-page-not-centered/)
 *  [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years ago](https://wordpress.org/support/topic/archives-page-not-centered/#post-4825431)
 * Still haven’t found a solution, any ideas?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Clicking on WordPress calendar/archive widget breaks layout](https://wordpress.org/support/topic/clicking-on-wordpress-calendararchive-widget-breaks-layout/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years ago](https://wordpress.org/support/topic/clicking-on-wordpress-calendararchive-widget-breaks-layout/#post-5334608)
 * Still haven’t found a solution, any ideas?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Archives Page not centered](https://wordpress.org/support/topic/archives-page-not-centered/)
 *  [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years ago](https://wordpress.org/support/topic/archives-page-not-centered/#post-4825430)
 * I am also having this issue. Is there a way to have archive.php centered without
   having to remove body_class()?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Clicking on WordPress calendar/archive widget breaks layout](https://wordpress.org/support/topic/clicking-on-wordpress-calendararchive-widget-breaks-layout/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years ago](https://wordpress.org/support/topic/clicking-on-wordpress-calendararchive-widget-breaks-layout/#post-5334538)
 * I have found the problem [here.](https://wordpress.org/support/topic/archives-page-not-centered?replies=3)
   I had to remove the body_class() from the header.php. However, theme check requires
   me to have body_class(). Is there a workaround to have both the page centered
   and the body_class()?
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5196129)
 * The javascript is currently in my header.
 * Would I need to change my approach and look towards this:
 * [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5196127)
 * The metabox is not getting a hidden css class. I tried using the code snippet
   above in the developer tools console in chrome and it works, but anywhere else,
   it has no effect.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5196064)
 * I can’t seem to get that code you provided in the link working. I currently have
   this:
 *     ```
       <script>
       $( document ).ready( function($)
           {
               $( "#easy_image_gallery" ).addClass( "hidden" );
   
               if( $( "input#post-format-gallery" ).is(':checked') ){
                   $( "#easy_image_gallery" ).removeClass( "hidden" );
               }
                      $( "input#post-format-gallery" ).change( function() {
                   if( $(this).is(':checked') ){
                       $( "#easy_image_gallery" ).removeClass( "hidden" );
                   }
               } );
   
               }
           );
           </script>
       ```
   
 * I have opened your code and found the id of your metabox to be ‘easy_image_gallery’,
   but I’m not entirely sure if that value is supposed to go where is currently 
   is. Any help would be appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5196024)
 * Thanks, appreciate it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5196016)
 * Javascript is probably one of my weaker points right now. Are you able to provide
   a snippet of what it would look like?
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5196006)
 * Yea, I do. I changed my original post to another question that I had
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Image Gallery] Metabox Visibility](https://wordpress.org/support/topic/galley-into-a-slider/)
 *  Thread Starter [bbopbernard](https://wordpress.org/support/users/bbopbernard/)
 * (@bbopbernard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/galley-into-a-slider/#post-5195966)

Viewing 13 replies - 1 through 13 (of 13 total)