How could a Widget behave differently depending on sidebar

there isnt a clean way of handling this, since there isn’t a conditional for checking which sidebar is in use, just whether or not it exists. however, you could do the following:

  1. make two different versions of the widget (which would make it “future proof” in regards to what widget names could exist).

  2. add a checkbox to the widget options to choose which size image to use.

Leave a Comment