desmondng528 Posted November 13, 2018 Report Share Posted November 13, 2018 Hi, I Can't seem to find the right place to put my code into the functions.php file. I am using Divi, hence the location to put the codes will be different as some of the pages has an extra block right before the content. How can I be sure to place it at the right place? Link to comment Share on other sites More sharing options...
Support Pratik.d Posted November 13, 2018 Support Report Share Posted November 13, 2018 Hello, Thank you for contacting MyThemeShop today. You can use Divi's et_before_main_content hook to add breadcrumb before the content. Try adding below code to your theme's functions.php file: function rm_breadcrumb_handler() { if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); } add_action('et_before_main_content', 'rm_breadcrumb_handler'); Hope that helps. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin. ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
desmondng528 Posted November 14, 2018 Author Report Share Posted November 14, 2018 Sorry, but I can't seem to find the line anywhere in my function.php (I used cmd + f to find) Link to comment Share on other sites More sharing options...
Support Montgomerie Posted November 14, 2018 Support Report Share Posted November 14, 2018 Hello, Can you please ask the Divi's support on where to put the code we provided as we might not have the latest version of the theme with us? Looking forward to helping you. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
Recommended Posts