[Resolved] Custom footer widget width size filters not working

Home Forums Support [Resolved] Custom footer widget width size filters not working

Home Forums Support Custom footer widget width size filters not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1500246
    Pradeep

    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

    #1500356
    Leo
    Staff
    Customer Support

    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

    #1500978
    Pradeep

    Many thanks for the quick reply as always! It seems that I have a lot to catch up. Have a good weekend!

    #1501469
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.