Home › Forums › WoodMart support forum › Integrate Rank math SEO Breadcrumbs
Integrate Rank math SEO Breadcrumbs
- This topic has 9 replies, 2 voices, and was last updated 1 year, 11 months ago by Elise Noromit.
-
AuthorPosts
-
November 5, 2022 at 11:19 pm #418965
fouadabuhattabParticipantHello everyone, I’m using the Rank Math SEO plugin to setup SEO settings in my store, I need to replace theme breadcrumbs with the plugin breadcrumbs, I’m tried to add this code
/**
* Use the following code in your theme template files to display breadcrumbs:
*/
<?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>in your single-product.php file in the child theme but that’s not working also deleting Woocommerce breadcrumbs using this code from functions.php
function remove_wc_breadcrumbs() {
remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_breadcrumb’, 20, 0 );
}
add_action( ‘init’, ‘remove_wc_breadcrumbs’ );How can I make that in your theme without any problems if that is possible?
The main goal of that to setup the breadcrumbs schema for search enginge
November 8, 2022 at 2:30 am #419404
Elise NoromitMemberHello,
You need to find and copy the file: woocommerce/single-product/navigation.php
Then insert the code there and check. If it does not work, Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
November 8, 2022 at 12:16 pm #419514
fouadabuhattabParticipantHello, I found the navigation.php file and copied it at the same root in my child theme
woodmart-child/woocommerce/single-product/navigation.php but that does not work the single product page is displayed with an error in page width and others information on the page itself. there is a screenshot from the website after doing that.
Attachments:
You must be logged in to view attached files.November 10, 2022 at 2:59 am #419964
Elise NoromitMemberHello,
We cannot find the admin panel: https://monosnap.com/file/sfX9KlXZLk3MyRKBl4NSVNt3C2D4Iz
Please clone the site and move to the staging platform so that we could try to debug the issue.
Best Regards
November 13, 2022 at 1:12 am #420631
fouadabuhattabParticipantHi, I’m sorry for the late reply already I’m staging my website and will provide you with the login information.
You can test anything you need on this website.I’m waiting for your reply and feedback about this problem
- This reply was modified 1 year, 11 months ago by fouadabuhattab.
November 14, 2022 at 4:26 pm #420997
Elise NoromitMemberHello,
We do not see the copied file in the testing site: woocommerce/single-product/navigation.php
We cannot copy code without FTP. Please try to copy the file into the child theme and insert this code:
if ( function_exists('rank_math_the_breadcrumbs') ) { rank_math_the_breadcrumbs(); return; }
https://monosnap.com/file/Gs8qCTa2RboATyBZEvM4Li8lVfUFr6 as soon as you copy and insert the code everything should work well: https://monosnap.com/file/bL3C9DCBg61d5OnewgSBic0PsTojAC
If you have any questions please feel free to contact us.
Best Regards
November 14, 2022 at 6:44 pm #421050
fouadabuhattabParticipantHello, I copped the navigating.php file to my child theme in the development stage and added your code
if ( function_exists(‘rank_math_the_breadcrumbs’) ) {
rank_math_the_breadcrumbs();
return;
}in the file but woodmart breadcrumb doesn’t remove, and duplicated with the rank math breadcrumb in the single product page
I need to replace your breadcrumbs with rank math breadcrumb
- This reply was modified 1 year, 11 months ago by fouadabuhattab.
Attachments:
You must be logged in to view attached files.November 16, 2022 at 3:56 am #421415
Elise NoromitMemberHello,
Sorry, we misunderstood you a bit.
Remove this file: woocommerce/single-product/navigation.php
Please insert this file in the same route: woocommerce/global/breadcrumb.php and insert the code we provided: https://monosnap.com/file/hNDeKt5vs6TQAnkAnDpHpo8hHxh520
Best Regards
November 16, 2022 at 11:55 am #421528
fouadabuhattabParticipantHello, I copped the breadcrumbs.php file to my child theme in the development stage and added your code
if ( function_exists(‘rank_math_the_breadcrumbs’) ) {
rank_math_the_breadcrumbs();
return;
}in the route: woocommerce/global/breadcrumb.php in my child theme
But there is no anything change in the breadcrumbs
November 18, 2022 at 3:47 am #421973
Elise NoromitMemberHello,
You have inserted the code incorrectly, our developers have corrected it: https://monosnap.com/file/FrvAHPkqrMy0EXq7TE5HFd6vCy0xtg
If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
Tagged: SEO
- You must be logged in to create new topics. Login / Register