[Resolved] Breadcrumb NavXT Plugin

Home Forums Support [Resolved] Breadcrumb NavXT Plugin

Home Forums Support Breadcrumb NavXT Plugin

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #107321
    scott doel

    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

    #107323
    scott doel

    Sorry the div tags get stripped, the code is here

    #107324
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #107332
    scott doel

    Perfect, thanks Tom

    #107415
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

    #1852580
    srimali senn

    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

    #1852650
    David
    Staff
    Customer Support

    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

    #1852669
    srimali senn

    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

    #1852699
    David
    Staff
    Customer Support

    Glad we can be of help

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.