• Resolved alberto.pm9

    (@albertopm9)


    Hello.

    I know I can choose the number of footer widgets to use in a page but let’s say I want to use 2 footer widgets, but I want to use the footer widget number 2 and the number 3, not the number 1.
    Is it possible to do this?
    I’m looking for any filter that can do the trick but I’m not sure it could be possible.
    Maybe working with the footer widget width? (0 to footer widget number 1)

    BTW, I’m using a child theme.

    TIA.

    Alberto.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Leo

    (@leohsiang)

    Hi Alberto,

    I don’t think it would be easy to do that. It shouldn’t make a difference which number you use though. What are you trying to achieve?

    Let me know.

    Thread Starter alberto.pm9

    (@albertopm9)

    Hi Leo.
    Thanks for your reply!

    I’ve got my primary navigation also into the first footer widget, so I use it like a kind of sitemap. But I don’t want to see this footer widget in all pages, for instance where I want to show only footer widget number 2 and number 3.

    I’m considering using a section instead of footer widget for those pages… what do you think about it?

    Leo

    (@leohsiang)

    Definitely doable. Assuming you have total of three footer widgets, try this:
    – Install Simple CSS plugin: https://docs.generatepress.com/article/adding-css/#simple-css

    – On the page where you want to hide footer widget 1, insert the CSS below in the Simple CSS meta box at the bottom of the Edit Page Screen:

    .footer-widget-1 {
        display: none;
    }
    @media (min-width: 1025px) {
        .inside-footer-widgets .grid-33 {
            width: 50%;
        }
    }

    Let me know if this works.

    • This reply was modified 7 years, 9 months ago by Leo.
    Thread Starter alberto.pm9

    (@albertopm9)

    Hi Leo.

    Thanks very much!
    Your suggest works fine and it helped me a lot.

    Finally I’m using four footer widgets and working with this code:

    .footer-widget-1 {
        display: none;
    }
    @media (min-width: 1025px) {
        .inside-footer-widgets .grid-25 {
            width: 33%;
        }
    }

    I just have to adjust the width of the grid for resolutions between 768px and 1024px.

    Regards.

    Leo

    (@leohsiang)

    Awesome. Glad you were able to adjust the code ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Select the footer widgets.’ is closed to new replies.