Answers.Body: <p>I found that Backdrop does not add as many classes to the <code>&lt;body&gt;</code> by default, and adding this to the CiviCRM administrative theme's <code>template.php</code> goes a long way towards getting things styled as expected:</p>
  <pre><code>/**
   * Implements theme_preprocess_page().
   *
   */
  function MYADMINTHEME_preprocess_page(&amp;$variables) {
    $path = current_path();
    $path_parts = explode('/', $path);
    $segment = 'page-';
    foreach ($path_parts as $path_part) {
      $segment .= $path_part;
      $variables['classes'][] = $segment;
      $segment .= '-';
    }
  }
  </code></pre>
  <p>Follow here:</p>
  <ul>
  <li><a href="https://github.com/civicrm/org.civicrm.shoreditch/issues/539" rel="nofollow noreferrer">https://github.com/civicrm/org.civicrm.shoreditch/issues/539</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-21T20:57:05.977Z
Answers.LastActivityDate: 2022-04-21T20:57:05.977Z
Answers.UserDisplayName: Laryn
Body: <p>I've noticed some of the styling doesn't come through on Backdrop when Shoreditch is installed. For example, when viewing a contact, the tabs do not stack on the left, as they do on Drupal 7.</p>
  
Tags: <backdrop><shoreditch>
Title: How can I get Shoreditch theming in Backdrop?
ThreadText: # How can I get Shoreditch theming in Backdrop?
  
  (Asked by: username_0 on 2022-04-21)
  
  I've noticed some of the styling doesn't come through on Backdrop when Shoreditch is installed. For example, when viewing a contact, the tabs do not stack on the left, as they do on Drupal 7.
  
  **Tags:** backdrop, shoreditch
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-04-21. Score: 1
  
  I found that Backdrop does not add as many classes to the  by default, and adding this to the CiviCRM administrative theme's template.php goes a long way towards getting things styled as expected:
  /**
   * Implements theme_preprocess_page().
   *
   */
  function MYADMINTHEME_preprocess_page(&$variables) {
    $path = current_path();
    $path_parts = explode('/', $path);
    $segment = 'page-';
    foreach ($path_parts as $path_part) {
      $segment .= $path_part;
      $variables['classes'][] = $segment;
      $segment .= '-';
    }
  }
  
  Follow here:
  
  https://github.com/civicrm/org.civicrm.shoreditch/issues/539
  
  
  ---
  
  