Skip to content

Commit

Permalink
Prevent sticky lib from loading on user pages
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed Jul 27, 2023
1 parent 9c8ab4c commit de500b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kraken.theme
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function kraken_page_attachments_alter(array &$page)

$clf_sticky = theme_get_setting('clf_sticky');
if ($clf_sticky) {
$page['#attached']['library'][] = 'kraken/sticky-header';
//$page['#attached']['library'][] = 'kraken/sticky-header';
if (\Drupal::routeMatch()->getRouteName() != ('user.login' || 'user.register' || 'user.password')) {
$page['#attached']['library'][] = 'kraken/sticky-header';
}
}
}

Expand Down

0 comments on commit de500b8

Please sign in to comment.