Archived topic
Custom footer widget width size filters not working
3 replies · Started by Pradeep on October 22, 2020
Hello there,
I just followed the guidelines given in here to get different widths for footer widgets but for some reason it's not working for me, even after clearing cache. I'm using GP 3.0.2 and GP Premium 1.12.2. Please see the private information area for the development site link. Here's the snippet I've added using Code Snippets plugin:
add_filter( 'generate_footer_widget_1_width', function() {
return '10';
} );
add_filter( 'generate_footer_widget_2_width', function() {
return '10';
} );
add_filter( 'generate_footer_widget_3_width', function() {
return '80';
} );
Many thanks in advance!
Pradeep
Hi there,
That filter is no longer working/needed as you are using the Flexbox version as the structure.
In that case this should help:
https://docs.generatepress.com/article/switching-from-floats-to-flexbox/#footer-widget-widths
Many thanks for the quick reply as always! It seems that I have a lot to catch up. Have a good weekend!
No problem :)