Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php // No poner esta linea
  2.  
  3. // orbital/inc/extras.php line 102 copiar desde aquí
  4. if (!function_exists('orbital_check_sidebar_class')) :
  5.  
  6. function orbital_check_sidebar_class($classes)
  7. {
  8.  
  9. if (orbital_check_woocommerce()) {
  10. if (!is_active_sidebar('shop') && is_woocommerce()) {
  11. $classes[] = 'no-sidebar';
  12. } elseif (is_woocommerce()) {
  13. return $classes;
  14. }
  15. }
  16.  
  17. if (
  18. !is_active_sidebar('pages') && is_page()
  19. || !is_active_sidebar('posts') && is_single()
  20. || !is_active_sidebar('archives') && is_archive()
  21. || !is_active_sidebar('page-home') && is_home()
  22. || !is_active_sidebar('pilar') && is_page_template('templates/page-pilar.php')
  23. || !orbital_get_option_page('sidebar')
  24. ) {
  25. $classes[] = 'no-sidebar';
  26. }
  27.  
  28. return $classes;
  29. }
  30.  
  31. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement