Setting Main Category for a Product

#45463
  • Resolved Georgi
    Rank Math free

    Hello,

    I just moved with RankMath and noticed that we cannot select a main category for a product. The breadcrumbs will show a random category from all selected. Yoast had this as a feature. Can you incorporate it? I need it really much! 🙁

Viewing 6 replies - 1 through 6 (of 6 total)
  • DJ
    Rank Math free

    [Removed my comment as realised it is unrelated]

    • This reply was modified 4 years, 6 months ago by DJ. Reason: Issue appeared to be the same as one of my open tickets but now appears to be unrelated
    Georgi
    Rank Math free

    Oh, okay, I found how it’s done. But the thing is the theme uses its own breadcrumbs and doesn’t recognize the plugin’s. I tried incorporating the code for breadcrumbs but it didn’t work 🙁 Can you help with that ?

    This is my page.php: https://pastebin.com/aJUchs2c
    And this is the single.php: https://pastebin.com/vA9r1ifm

    Georgi
    Rank Math free

    Okay, I was referred to the template-tags.php file to edit the woodmart_page_title function. I don’t know much about coding, tried replacing the top two lines with yours code but it failed. Can you please help, please? I’ll have to be stuck with Yoast…

    https://pastebin.com/dKHVCL7R

    Todd
    Rank Math free

    Hi Georgi,

    Thanks for getting in touch with us.

    Please replace this code in your file:
    <?php if ( $breadcrumbs ) woodmart_current_breadcrumbs( 'pages' ); ?>

    With the Rank Math breadcrumbs code:

    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
    

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Georgi
    Rank Math free

    Hi Todd,

    I just tried it but it didn’t work.

    Sorry I opened another ticket (https://support.rankmath.com/ticket/setting-up-rankmaths-breadcrumbs/), I felt this one was in the wrong category.

    Todd
    Rank Math free

    Hi Georgi,

    We will reply to that ticket.

    Ideally, you would want to ask this to your theme provider since they are more familiar with the coding structure.

    But, we will give it a shot and we will reply to your other ticket.

    I am closing this ticket.

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

The ticket ‘Setting Main Category for a Product’ is closed to new replies.