• Something I’ve been dreaming about ever since I started using CMS’s for making websites.

    On certain pages that are very short, the widgets extend the page too much, leaving lots of blank space in the main content area at the bottom. To prevent this, I conditionally hide widgets on a (usually) per-CPT basis. However, when there is lots of content of different length, it’s realistically impossible to write enough rules.

    It would be much nicer to have a sidebar which dynamically hides widgets that would otherwise lengthen the page.

    As a bonus, maybe I could even prioritize which widgets to hide (as opposed to merely the bottom ones).

    Maybe it would be done by making the sidebar inherit its length from the main content, regardless of whether all the widgets then fit. Then something like CSS could be used to hide widgets that don’t fit into the sidebar div?

    I’ve also posted this question here: https://wordpress.stackexchange.com/questions/110165/automatically-hide-widgets-that-would-lengthen-page

  • The topic ‘Automatically hide Widgets that would lengthen page’ is closed to new replies.