Archived topic
Breadcrumb NavXT Plugin
8 replies · Started by scott doel on May 11, 2015
Hi Tom,
Amazing theme! I want to use the above plugin for breadcrumbs, but dont need all the features on the add-on. Would i be possible to tell me how I can add their snippet to the theme files, preferable a child theme function
Sorry the div tags get stripped, the code is here
If you're not wanting to use GP Hooks, you can use a function like this:
add_action('generate_after_header','generate_bcn_display');
function generate_bcn_display()
{ ?>
Anything in here will be adding after the header
<?php }
Let me know :)
Perfect, thanks Tom
You're welcome :)
I have installed the above plugin, I want it to appear in the posts.
In the header.php can you tell me the exact location to add the following code
i want breadcrumb to appear below the title of the posts.
Thank you
Hi there,
don't edit the Themes template files.
Create a new Hook element:
https://docs.generatepress.com/article/hooks-element-overview/
Add your code to the Hook text area
Set the Hook to: after_entry_title
See here for a visual guide of the common hooks.
Check the Execute PHP option.
And set the Display Rules to Posts > All Posts
Thank you very much, it worked like a charm, I am very grateful for generatepress team for making our lives easier.
Thank you once again
Glad we can be of help