Hello,
Provide us with WP Dashboard access to check why the mentioned code does not work for you.
Regards