How to Edit Widget

Hit Appearance > Widgets. Choose a widget you want to edit.
Then choose its area as you wish and hit Add Widget.
Then you will notice a just-added widget on the right. In this case, Cart on Shop Sidebar. Edit and hit Save.
Then go to your site and see the changes.