See the step-by-step instruction at below:
Step 1
Open the functions.php file of your Digital Pro theme and add the following snippets at end of the file. Before editing the file you will keep a backup of your child theme.
If you need help, feel free contact me via contact page.
Appreciate the tutorial, Chinmoy. Note that the title for “Step 2” somehow got stuck in the middle of your first code embed, so it looks as though the function and the JS are all one.
Thanks for this information. I updated the post. Please re-check it now.