• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

RankMath and Breadcrumbs

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › RankMath and Breadcrumbs

This topic is: resolved

Tagged: breadcrumbs, RankMath

  • This topic has 3 replies, 3 voices, and was last updated 2 years, 11 months ago by rogerp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 30, 2020 at 3:16 pm #497608
    rogerp
    Participant

    Is anyone using RankMath with their Genesis site?

    I am trying it out but looking for the best settings for breadcrumbs

    I want to be able to control the breadcrumb title for each post

    So have disabled setting from within Genesis and enabled in RankMath

    But RankMath says to put this code in your theme

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

    But I am not sure where to put it?

    As I tried in functions.php and it broke the site.


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

    March 31, 2020 at 4:58 am #497622
    Victor Font
    Moderator

    If you add the code to functions.php remove the PHP strings. Just use:

    if (function_exists('rank_math_the_breadcrumbs'))
        rank_math_the_breadcrumbs();

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 31, 2020 at 9:43 am #497630
    Anita
    Keymaster

    @rogerp just an FYI make sure you update RankMath. There's a vulnerability. Blog here.


    Love coffee, chocolate and my Bella!

    March 31, 2020 at 10:18 am #497633
    rogerp
    Participant

    Thanks Victor,

    This threw the breadcrumbs to the very top of my site?

    Have resolved it with this code

    //* Enable RankMath Breadcrumbs
    add_filter( 'the_content', function( $content ) {
    if( function_exists( 'rank_math_get_breadcrumbs' ) ) {
    $content = rank_math_get_breadcrumbs() . $content;
    }
    return $content;
    });


    @anita
    Thanks I am on auto-update for RankMath so we are all good!

    Still not sure if it's any better than Yoast?


    Roger
    https://www.rogerperkin.co.uk/
    Check out my Network Automation Training – Training the Network Engineers of the Future

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘RankMath and Breadcrumbs’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble