Hi @Markgoessens
To place this in a widget that you can use in the ‘widgets’ area of the wp-admin and drag / drop to re-position, you will need to create a new custom widget.
This is not a difficult task and you can find many tutorials on the net to help.
The beauty is that your widget does not need to save any data other than the title, so you can skip over any instructions to add in custom input fields.
Then, you can place ‘the tutorial code’ into the widgtes render function!
Good luck
Thanks
E