Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change main content breakpoints to lg #700

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
function bootscore_main_col_class_sidebar($string) {
if (is_active_sidebar('sidebar-1')) {
// Sidebar is not empty
return "col-md-8 col-lg-9";
return "col-lg-9";
}

return $string;
Expand Down
6 changes: 3 additions & 3 deletions sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
return;
}
?>
<div class="<?= apply_filters('bootscore/sidebar/col_class', 'col-md-4 col-lg-3 order-first order-md-last'); ?>">
<div class="<?= apply_filters('bootscore/sidebar/col_class', 'col-lg-3 order-first order-lg-last'); ?>">
<aside id="secondary" class="widget-area">

<button class="<?= apply_filters('bootscore/sidebar/toggler_class', 'd-md-none btn btn-outline-primary w-100 mb-4 d-flex justify-content-between align-items-center') ?>" type="button" data-bs-toggle="offcanvas" data-bs-target="#sidebar" aria-controls="sidebar">
<button class="<?= apply_filters('bootscore/sidebar/toggler_class', 'd-lg-none btn btn-outline-primary w-100 mb-4 d-flex justify-content-between align-items-center') ?>" type="button" data-bs-toggle="offcanvas" data-bs-target="#sidebar" aria-controls="sidebar">
<?php esc_html_e('Open side menu', 'bootscore'); ?> <i class="fa-solid fa-ellipsis-vertical"></i>
</button>

<div class="<?= apply_filters('bootscore/sidebar/offcanvas_class', 'offcanvas-md offcanvas-end') ?>" tabindex="-1" id="sidebar" aria-labelledby="sidebarLabel">
<div class="<?= apply_filters('bootscore/sidebar/offcanvas_class', 'offcanvas-lg offcanvas-end') ?>" tabindex="-1" id="sidebar" aria-labelledby="sidebarLabel">
<div class="offcanvas-header">
<span class="h5 offcanvas-title" id="sidebarLabel"><?php esc_html_e('Sidebar', 'bootscore'); ?></span>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#sidebar" aria-label="Close"></button>
Expand Down