• I have two widget areas in my theme, sidebar and footer. Now I have developed few widgets. Is it possible to restrict a widget to a specific area? For example, widgetA can only go to sidebar, but not to Footer area. Similarly widgetB can only go to footer but not sidebar?
    The reason for doing is that some widget’s CSS style does not fit in sidebar, or footer.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is it possible to restrict a widget to a specific area?

    Nope. Not as far as I am aware.

    some widget’s CSS style does not fit in sidebar, or footer.

    So re-style it based on whether it’s in the sidebar or in the footer.

    I’d like to know the answer to this myself. My thought is to return nothing in the widget code if it is in a particular widget area. Not sure yet how to do this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I restrict widgets to sidebar or footer area?’ is closed to new replies.