• The display on checked pages works fine. When I activate the plugin and turn on footer widgets in theme options it allows me to choose 3 or 4 widgets.

    So if I choose 3, footer widget 1 and 2 work fine. When I add text, visual editor or anything in footer 3, it all shows up in footer 2 and footer 3 is blank white space.

    If I choose 4 footer widgets. Whatever is in #3 shows up in #2 and #4 shows in #3 and #4 is blank white space.

    When I deactivate, everything displays nicely and accurate except I lose control on what pages they display on.

    Help.

    I am using SociallyViral Theme 2.1 from mythemeshop

Viewing 4 replies - 1 through 4 (of 4 total)
  • I develop a forked version of Display Widgets called Display Widgets SEO Plus at https://www.ads-software.com/plugins/display-widgets-seo-plus/ and I’m familiar with the issue.

    I’ve not used the theme you use, but if I understand your setup the SEO theme I develop (Stallion Responsive) has a similar footer widget setup (4 lined up footer widget areas). I think I got the code from one of the default themes (maybe TwentyTen) and it’s designed to show the widget areas only when widgets are added to them.

    So if you add widgets to area 2, 3 and 4 it looks like you’ve added widgets to 1, 2 and 3 because widget area 1 isn’t loaded.

    It sounds like you’ve hidden the widgets in area 1 (via Display Widgets settings) which means area 1 doesn’t load.

    Is this what you’ve done as it explains the behavior?

    I see the same thing with the Stallion Responsive theme footer widget areas, the solution is always load a widget in all four widget areas. I added a custom theme feature to have Spacer Widgets, so if I were setting up widget areas that would be blank I’d add a Spacer Widget to the top of each widget area (even then you still get a blank widget area, but it hasn’t moved from 4 to 3 etc…).

    In the Display Widgets SEO Plus Plugin adding an empty Text Widget to Widget Area 1 stops Widget Area 2 moving across (still a blank space though for widget area 1 rather than area 4): not tested this with the Display Widgets plugin (I assume the same result since my plugin is based on this one). You could set the empty Text Widget to have the opposite Display Widget options as the widget that’s causing the problem in area 1: when the current widget is hidden the empty Text widget shows.

    Best option is design your widget areas to always load something so they look balanced otherwise you’ll have blank spaces somewhere.

    David

    Thread Starter nicklock

    (@nicklock)

    Awesome thanks. Installed it. Works well. Found 1 little glitch. I have 3 widgets in my footer. If I put something in widget 2 and 3 and leave widget 1 blank, it moves whats in widget 2 & 3 and puts them in 1 & 2 and leaves #3 blank.

    Other than that, great.

    I’m 99% certain your theme is responsible for that behavior and it’s meant to do that otherwise Widget Area 1 would leave a blank space. The assumption is (by theme developers) is you don’t want blank spaces.

    Many themes have a function (the is_active_sidebar() function : https://codex.www.ads-software.com/Function_Reference/is_active_sidebar) to check if a Widget Area has something added to it, if nothing is added the widget area isn’t activated so isn’t loaded.

    To generate 3 footer widget areas in a single row many themes use CSS floats, they basically stack from left to right. If widget Area 1 is missing (not active) Widget Area 2 stacks (floats) to the far left followed by Widget Area 3. This will look like Widget Area 3 is blank, it isn’t, it’s Widget Area 1 that’s blank (not activated, so takes up no space).

    Loads of themes do it this way, it’s normal.

    If you want a blank widget area try adding a “Text” widget to Widget Area 1 without adding anything to the “Text” widgets title or content form and you’ll see a blank space where Widget Area 1 is. That’s because Widget Area 1 will now have a widget (an empty one) so it’s considered active and will take up space.

    David

    Thread Starter nicklock

    (@nicklock)

    Youre probably right. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘When I activate, I lose a footer widget’ is closed to new replies.