[Support request] Breadcrumb placement

Home Forums Support [Support request] Breadcrumb placement

Home Forums Support Breadcrumb placement

  • This topic has 4 replies, 2 voices, and was last updated 5 years ago by David.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #843102
    Altti

    Hey there, I’m trying to add breadcrumbs to my custom header that I build with ‘Elements’. I use a plugin: ‘Breadcrumbs Simple’ that gives a shortcode. The problem is that the breadcrumbs dont show where I put it. It appears out side of the header box.

    Here is my simple header:

    <div class="hero">
       [breadcrumb_simple]
       <h1>{{post_title}}</h1>
    </div>

    How can I get the breadcrumb to the place I want?

    #843159
    David
    Staff
    Customer Support

    Hi there,

    can you link me to your site so i can see the problem. You can edit your original topic and use the Site URL field for privacy.

    #844187
    Altti

    URL added to original post.

    #844237
    Altti

    There’s something really weird about how GeneratePress handles breadcrumbs.

    I changed the position of the breadcrumbs now. They are in a hook: after_header. I put it inside div: crumbs but somehow that disappears.

    Here’s my hook:

    <div class="crumbs">
       [breadcrumb_simple]
    </div>
    

    And here’s how it’s HTML looks:

    <div class="breadcrumb">
      <a href="https://url">Home</a>
      <span class="seprater">|</span>
      <span class="current">Page</span>
    </div>
    
    #844358
    David
    Staff
    Customer Support

    Hi there,

    it looks like the shortcode is echoing its output as opposed to returning it. Which is the reason for it appearing outside of the div wrap you have added. You can see you empty div below the markup the shortcode creates.

    Do you need the additional div wrap?

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