• Hello,

    I would like to include breadcrumbs in global header with Blocksy theme and rank math. I searched quite a while but couldn’t find any solution for that. I managed to place breadcrumbs in the text section but this is far less visible.

    Thanks in advance

    Erwin

    • This topic was modified 1 year, 3 months ago by erwine2912.
Viewing 13 replies - 1 through 13 (of 13 total)
  • It looks like Blocksy has support for breadcrumbs and integration with Rank Math. Make sure you choose Rank Math as the provider in the breadcrumbs Blocksy settings, as explained in the documentation.

    Then, if you want to position the breadcrumbs in your header, I suggest to edit your header.php and include the following code:

    <?php echo do_shortcode('[blocksy_breadcrumbs]'); ?>

    If you don’t want to modify the block files, you can create a child theme.

    • This reply was modified 1 year, 3 months ago by luisherranz.
    Thread Starter erwine2912

    (@erwine2912)

    Thanks for your quick answer. The problem is that in the new version of WordPress, there is no theme editor anymore. So how can I access and modify the header?

    kind regards

    erwin

    I think it was moved to “Tools”. Can you check if it’s there?

    Thread Starter erwine2912

    (@erwine2912)

    Thanks once more for your quick answer. My WordPress version (6.4.1.) doesn’t show this option. any idea?

    • This reply was modified 1 year, 3 months ago by erwine2912.

    Do you have FTP access to your server?

    Thread Starter erwine2912

    (@erwine2912)

    Yes, I do. Isn’t there the risk that my modifications of the *.php files will be automatically removed with every update?

    • This reply was modified 1 year, 3 months ago by erwine2912.

    Yes. If you don’t want to modify the block files, you should create a child theme.

    Thread Starter erwine2912

    (@erwine2912)

    Thanks. I will search for informations how to create child themes. What is the name of the file I should create a child theme from if I want to integrate breadcrombs into the header? And where could I find it on the server?

    Kind regards,

    Erwin

    That file is usually called header.php, but it may vary across themes. If you don’t find it, search for the file that has the wp_head action.

    Thread Starter erwine2912

    (@erwine2912)

    Thanks,

    so I create a child of the header.php which contains nothing else than the following function?

    <?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>

    • This reply was modified 1 year, 3 months ago by erwine2912.

    Oh, no. You need to copy the original header.php file and add the breadcrumbs code in the correct place.

    Thread Starter erwine2912

    (@erwine2912)

    Thanks a lot for all your suggestions. Unfortunately my theme Blocksy doesn’t seem to work properly with it. I used the app child theme configurator to apply the necessary changes and the child theme had a lot of problems displaying everything the way I wanted. So I tend to resign.

    Anyway, thanks so much for your support….

    That’s unfortunate. I’d try to contact Blocksy authors, as all themes should work fine with child themes.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to implement breadcrumbs in header with Rank Math (free version)’ is closed to new replies.