Home Forums WoodMart support forum Integrate Rank math SEO Breadcrumbs

Integrate Rank math SEO Breadcrumbs

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #418965

    fouadabuhattab
    Participant

    Hello 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

    #419404

    Hello,

    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

    #419514

    fouadabuhattab
    Participant

    Hello, 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.
    #419964

    Hello,

    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

    #420631

    fouadabuhattab
    Participant

    Hi, 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

    #420997

    Hello,

    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

    #421050

    fouadabuhattab
    Participant

    Hello, 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

    Attachments:
    You must be logged in to view attached files.
    #421415

    Hello,

    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

    #421528

    fouadabuhattab
    Participant

    Hello, 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

    #421973

    Hello,

    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

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)