• Resolved tejas5989

    (@tejas5989)


    Hello,

    We are facing the issue of Breadcrumb HTML structure on the Nu HTML Checker tool as the plugin binds the <li> tags directly to the <div> tag. Is there any filter available from which we can bind those <li> tags to <ul> Or <ol> tags? I am attaching a screenshot for the reference.

    Waiting for the positive response.

    Thanks,

    • This topic was modified 1 year, 9 months ago by tejas5989.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Havlik

    (@mtekk)

    How are you calling the breadcrumb trail? The linked page has <li> tags that probably shouldn’t be there. That said, I’m not sure how with Breadcrumb NavXT you would get <li> tags without extra stuff in them (using bcn_display_list() is going to add other things within the <li> tags), unless prevented using the bcn_display_attributes filter.

    Thread Starter tejas5989

    (@tejas5989)

    Hello John Havlik ( @mtekk )

    Thank you so much for the response. We have no issue where we have used the bcn_display_list() function. We have an issue on Gutenberg sites where we have displayed the BreadCrumb using the Gutenberg block provided by the BreadCrumb Navxt.

    BreadCrumb Navxt block binding the <li> tags directly to the <div class=”breadcrumbs ” typeof=”BreadcrumbList” vocab=”https://schema.org/”&gt; tag in place of any <ul> or <ol> tag.

    Here is the Screenshot for your reference. Waiting for the

    Thanks,

    Plugin Author John Havlik

    (@mtekk)

    That’s interesting, the Breadcrumb NavXT Gutenberg block shouldn’t be adding the <li> tags. Based on some testing on my local testbed, my guess is your breadcrumb templates (in the Breadcrumb NavXT settings) have these <li> tags (which is not the default value), or the plugin was modified to call bcn_display_list() instead of bcn_display() within the render_block() function. The current Breadcrumb NavXT Gutenberg block does not support using <ol> or <ul> wrappers and <li> elements (the plan is to update the Gutenberg block to support more settings/features in the next release). So, at this time, I’d recommend sticking with just <span> wrappers and closer to the default breadcrumb templates.

    Thread Starter tejas5989

    (@tejas5989)

    Hello John Havlik (?@mtekk?)

    Thank you for sharing your feedback on my queries. I have resolved the issue by following your instructions.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BreadCrumb HTML Structure Issue on NU HTML Checker Tool’ is closed to new replies.