Reduce footer hieght

Hi,

Is there a way to reduce the height of the footer. Its too tall that it consumes unnecessary space. Click here to see it live.

Thanks,
Carlou

Hi,

You can reduce the height of your footer’s widget area with this Custom CSS:

.footer-widgets {
    padding: 10px 0 0 0 !important;
}

#sidebar-footer.widget-area .col-md-12 .widget {
    margin-bottom: 0 !important;
}

Please add the above CSS to your Child Theme’s style.css or in case you haven’t setup a Child Theme already, then you can also add the CSS to wp-admin -> Appearance -> Customizer -> Additional CSS so you won’t loose the changes after Theme or WordPress updates.

Please let me know how it works.

Best Regards,
Csaba

Hi Csaba,

Putting the CSS code inside wp-admin -> Appearance -> Customizer -> Additional CSS worked. Thanks for that.

I also tried to add the code in my child theme but it didn’t work. I am not able to figure out why. Here’s the contents of my style.css.

/*
Theme Name: Sydney
Theme URI: http://brainwiz.tech/WordPress/
Author: Carlou Torres
Template: sydney
Author URI: http://brainwiz.tech/WordPress/
Description: This theme is a copy of Sydney Theme Version 1.39
Version: 0.1
*/
@import url("../sydney/style.css");

/* Start of insertion Carlou 23/05/2017*/
/* Reduce the hieght of the footer*/
.footer-widgets {
    padding: 10px 0 0 0 !important;
}

#sidebar-footer.widget-area .col-md-12 .widget {
    margin-bottom: 0 !important;
}
/* End of insertion Carlou 23/05/2017*/

I also tried the recommended way of creating a child theme by creating a function.php inside the child theme but it also did not work.

Here’s the contents of function.php

?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>

In the style.css, I only deleted the line @import url("…/sydney/style.css");

Just in case you know why these two options didn’t work, could you reply back?

Thanks again for your help.

Regards,
Carlou