Flatsome + Woocommerce Breadcrumbs Integration

#293392
  • Resolved Sigurd Greb
    Rank Math free

    Dear ladies and gentlemen,

    We are using Flatsome Theme + Woocommerce installed. As for the breadcrumbs integration code needs to be added. Can this be done in the Flatsome Header Scripts section or the additional CSS part? Or does it need to be added on a specific location?

    Many thanks for your efforts in advance.

    Kind regards
    Sigurd Greb

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    You can activate the breadcrumbs setting in Rank Math from Rank Math > General Settings > Breadcrumbs.

    Then add the Rank Math’s breadcrumbs code to your theme’s template files, and the breadcrumbs will appear on your website’s front-end accordingly.

    /**
     * Use the following code in your theme template files to display breadcrumbs:
     */
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    Paste the above code directly into your theme’s single.php or header.php wherever you prefer showing it.

    Here is a guide that might help you:
    https://rankmath.com/kb/breadcrumbs/#add-breadcrumbs-theme

    Please note that some options are only available when you enable the Advanced Mode in Rank Math. If it’s not showing, you must have chosen to use the Easy Mode. Please follow the steps in this link to switch to Advanced Mode:
    https://rankmath.com/kb/advanced-mode/

    Hope that helps. Thank you and please don’t hesitate to contact us if you need further assistance.

    Hi

    You mention in your guide in red that other plugins that use breadcrumbs – Woocommerce does – need to be disabled before using this code. Please confirm before I proceed.

    Many thanks
    Sigurd

    Could I use the plugin code snippets instead of altering the child theme functions.php file?

    Hello,

    You can use this code snippet in your theme’s function.php file to remove Woocommerce breadcrumbs from all pages:

    function remove_wc_breadcrumbs() {
    remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
    }
    add_action( 'init', 'remove_wc_breadcrumbs' );

    Yes, definitely you can use Code Snippet Plugin. Here is a guide that may help you:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#code-snippets-plugin

    Hope this helps. Looking forward to helping you.

    Thank you.

    Can I use the shortcode to create breadcrumbs based on main menu structure?

    Thank you!

    Hello,

    After adding the code stated here, you can add the breadcrumb anywhere you want with the help of a shortcode. Just copy and paste this shortcode to the text editor of any post/page, and then Rank Math will pull the breadcrumb for that specific post/page.

    Here is the shortcode:

    [rank_math_breadcrumb]

    I hope that helps you. Looking forward to your update.

    Thank you.

    The breadcrumb shows
    Home – “specific content page”

    How could I change it to:
    Home – “main content topic” – “specific content page”

    I appreciate your efforts!

    Kind regards
    Sigurd

    Hello,

    Please select Categories as Primary Taxonomy by going WordPress Dashboard > Rank Math > Titles & Meta > Post Types > Post.

    Then disable the Hide Post Title and enable the Show Category option and save changes by going WordPress Dashboard > Rank Math > General Settings >Breadcrumbs.

    Make sure you have chosen your sub-category as your Primary Term in the edit panel of post.

    Hope this helps. Please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    This was most helpful! Thank you so much Abdullah!!

    Hello,

    Glad that helped.

    Please let us know if there’s anything else that we can assist you with.

    We are here to assist you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Flatsome + Woocommerce Breadcrumbs Integration’ is closed to new replies.