Sidebar Class

Would love it if you could please add class structure to the sidebars in the main sidebar page so I can style different ones easily x

Hello There,

Thanks for writing in! You can always override the sidebar class if you wish though. You can make use of this code and start your customization:

// Sidebar Class
// =============================================================================

if ( ! function_exists( 'x_sidebar_class' ) ) :
  function x_sidebar_class() {

    switch ( x_get_content_layout() ) {
      case 'content-sidebar' :
        $output = 'x-sidebar right';
        break;
      case 'sidebar-content' :
        $output = 'x-sidebar left';
        break;
      default :
        $output = 'x-sidebar right';
    }

    echo $output;

  }
endif;

And remember, as this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.