I can confirm that gecko codes work fine. Make sure you have it saved to the correct gameID and that it’s for the correct version of the game (even if it’s the right region, it may be a different revision).
For widescreen hacks in particular, make sure you also have the “widescreen hack” option enabled in ES’s settings for Dolphin.