This could be usegul for others: in the end I found a plugin that can do it. Else, it can be done via adding code to the functions.php file.