Sorry, but we can’t guarantee that this code is 100% workable since it is not a part of our theme. But you can try to add it to the functions.php file in the child theme and test it. If you don’t have the child theme installed, you can get it from the package downloaded from ThemeForest.