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 footer col-md-6 to col-6 #633

Merged
merged 3 commits into from
Nov 24, 2023
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
15 changes: 9 additions & 6 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bootscore
*
* @version 5.3.0
* @version 5.4.0
*/

// Exit if accessed directly
defined( 'ABSPATH' ) || exit;

?>


<footer>

<div class="bootscore-footer bg-body-tertiary pt-5 pb-3">
Expand All @@ -27,28 +30,28 @@
<div class="row">

<!-- Footer 1 Widget -->
<div class="col-md-6 col-lg-3">
<div class="col-6 col-lg-3">
<?php if (is_active_sidebar('footer-1')) : ?>
<?php dynamic_sidebar('footer-1'); ?>
<?php endif; ?>
</div>

<!-- Footer 2 Widget -->
<div class="col-md-6 col-lg-3">
<div class="col-6 col-lg-3">
<?php if (is_active_sidebar('footer-2')) : ?>
<?php dynamic_sidebar('footer-2'); ?>
<?php endif; ?>
</div>

<!-- Footer 3 Widget -->
<div class="col-md-6 col-lg-3">
<div class="col-6 col-lg-3">
<?php if (is_active_sidebar('footer-3')) : ?>
<?php dynamic_sidebar('footer-3'); ?>
<?php endif; ?>
</div>

<!-- Footer 4 Widget -->
<div class="col-md-6 col-lg-3">
<div class="col-6 col-lg-3">
<?php if (is_active_sidebar('footer-4')) : ?>
<?php dynamic_sidebar('footer-4'); ?>
<?php endif; ?>
Expand Down
10 changes: 5 additions & 5 deletions inc/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*
* @package Bootscore
* @version 5.3.3
* @version 5.4.0
*/


Expand Down Expand Up @@ -91,7 +91,7 @@ function bootscore_widgets_init() {
'name' => esc_html__('Footer 1', 'bootscore'),
'id' => 'footer-1',
'description' => esc_html__('Add widgets here.', 'bootscore'),
'before_widget' => '<div class="footer_widget mb-4">',
'before_widget' => '<div class="footer_widget mb-3">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title h5">',
'after_title' => '</h2>'
Expand All @@ -102,7 +102,7 @@ function bootscore_widgets_init() {
'name' => esc_html__('Footer 2', 'bootscore'),
'id' => 'footer-2',
'description' => esc_html__('Add widgets here.', 'bootscore'),
'before_widget' => '<div class="footer_widget mb-4">',
'before_widget' => '<div class="footer_widget mb-3">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title h5">',
'after_title' => '</h2>'
Expand All @@ -113,7 +113,7 @@ function bootscore_widgets_init() {
'name' => esc_html__('Footer 3', 'bootscore'),
'id' => 'footer-3',
'description' => esc_html__('Add widgets here.', 'bootscore'),
'before_widget' => '<div class="footer_widget mb-4">',
'before_widget' => '<div class="footer_widget mb-3">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title h5">',
'after_title' => '</h2>'
Expand All @@ -124,7 +124,7 @@ function bootscore_widgets_init() {
'name' => esc_html__('Footer 4', 'bootscore'),
'id' => 'footer-4',
'description' => esc_html__('Add widgets here.', 'bootscore'),
'before_widget' => '<div class="footer_widget mb-4">',
'before_widget' => '<div class="footer_widget mb-3">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title h5">',
'after_title' => '</h2>'
Expand Down