Home Forums WoodMart support forum Adding Breadcrumbs to Theme Template Files

Adding Breadcrumbs to Theme Template Files

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #504252

    mrgeek
    Participant

    Good afternoon,

    From the documentation of RankMath seo plugin i have to add

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

    Doc url: https://rankmath.com/kb/breadcrumbs/#theme-template-files

    To the Single Page Template.php under the child theme . But in my case there is no such file under the child theme.They informed me from the support of the plugin to let you now so you can guide me where to add that php code.

    Thank you

    • This topic was modified 1 year, 2 months ago by mrgeek.
    #504361

    Luke Nielsen
    Keymaster

    Hello,

    If there is no such file, you need to copy it to the child theme from woodmart/page.php and define the code in that copied file.

    Or do you mean the Single product page?

    Kind Regards

    #504366

    mrgeek
    Participant

    dddd

    #504383

    Luke Nielsen
    Keymaster

    Hello,

    On the screenshot is the default theme, not ours.

    Please try to replicate it with our child theme.

    Kind Regards

    #504385

    mrgeek
    Participant

    I have to ” If there is no such file, you need to copy it to the child theme from woodmart/page.php and define the code in that copied file. ”
    Should i just copy paste it ?

    #504388

    Luke Nielsen
    Keymaster

    Hello,

    Yes, you need to copy that file (of course with the code inside) to the child theme and then define that code from the plugin. Clear the cache and recheck the issue.

    Kind Regards

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