Archived topic
Even spacing between footer widgets - Catalyst theme
6 replies · Started by Former User on August 18, 2019
Hi there,
In attempting to add a fourth widget to the footer for the Catalyst theme, the spacing between the third widget and the fourth widget isn't similar to the first, second and third. There doesn't appear to the option to space them evenly.
Updating the footer padding doesn't work.
Below are screenshots of the widgets.
Although the image was uploaded, it doesn't appear. The screenshot can also be referenced at - https://imgur.com/a/QD8t8gX
Hi there,
the widget areas are spaced evenly, it just the content is varying in width.
If you want to share a link to the site i can take a look and help you space them differently.
Thanks David. The site is running internally so it isn't accessible externally at the moment. If you can guide me with the changes I need to consider, that would be awesome. Thanks.
It's pretty tough to solve this issue without looking at the issue live as we will need to adjust with some CSS.
You could also consider using a narrower width for the second widget:
https://docs.generatepress.com/article/footer-widgets/#choosing-different-widths-for-each-widget-area
If not any chance we can revisit this when we can look at this issue live?
Thanks Leo. I'll give it a go. Does the code snippet below need to be added to the theme's function PHP file?
add_filter( 'generate_footer_widget_1_width', function() {
return '80';
} );
add_filter( 'generate_footer_widget_2_width', function() {
return '20';
} );
Not the parent theme's function.php.
Try one of these methods: https://docs.generatepress.com/article/adding-php/