Never mind, solved!
I missed the below part of the document:
Note 2: If you are not using a child theme, please find following line in Functions.php file of parent theme
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
and add your code right below that line.
