Thanks for replying so quickly!
We finally managed to do the same in a more “generic” way by deleting one piece of the code.
from
if(!$isHome && (is_single() || is_page()) && $authordata->ID){
to:
if(!$isHome && (is_single()) && $authordata->ID){
so the box won’t appear on pages, just on articles.