Site logo

Archived topic

NavXT - breadcrumbs no displaying in the customise section

9 replies · Started by chris on December 27, 2020

Viewing posts 1–10 of 10

Hello,

Hope you all had a lovely Christmas.

I have a question you guys may be able to help with, I've had look through opened topics and ca't seem to find anything relating to it.

I've just installed NavXT plugin, and I can see the setting page which has the default setting applied, the problems I'm having is from what I can tell this needs to be switched on, on the customise section, however, the breadcrumb section isn't being displayed there. I've looked in the modules section to see if it's configurable there but it doesn't seem to be. I am I doing something silly?

Thanks

Hi Chris,

Any chance you can link us to the site in question?

You can use the private information field.

Let me know :)

Hey thanks for getting back to me, yes that's no problem. thanks

Hi there,

the breadcrumb function needs to be added to the theme.
To do this:

1. Go to Appearance > Elements and add a new Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
2. Add this code to the Hook text area:

<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
    <?php
    if(function_exists('bcn_display'))
    {
            bcn_display();
    }?>
</div>

3. Select the hook you want it displayed, eg. generate_before_content
You can see where hooks are in this visual guide:
https://docs.generatepress.com/article/hooks-visual-guide/

4. Set you Display Rules to the Entire Site or wherever you want them displayed.

Thanks for getting back to me, I'll try this out

You're welcome = let us know.

Hey so thanks again for the support, have to say generate press just seems to be getting better all the time and the support is brilliant.

The instructions above were very good and clear, but I had a small bit of trouble, just flagging in case anyone else reads this post.

I found the above didn't seem to the display the breadcrumbs, however, I found this post, https://generatepress.com/forums/topic/how-can-i-make-breadcrumbs-visible-in-gp/#post-1101957

which I tired instead and seemed to work. I used this snippet of code from there and "check the execute PHP" and they seemed to work perfectly.

Thanks again

Glad you found that Topic :) I did look and couldn't find it originally.
Glad to be of help!

This just worked for me - thanks!

Glad to hear that!

This archived topic is closed to new replies.