• Resolved geerthoekzema

    (@geerthoekzema)


    Hi,

    I’m using breadcrumb navxt on multiple sites. I’m developing a new site, and I try to use breadcrumb navxt. Although there is a strange problem.

    I want my breadcrumbs to look like this:

    <li itemscope="" itemtype="https://data-vocabulary.org/Breadcrumb"><a title="Ga naar %htitle%" href="%link%" itemprop="url"><span itemprop="title">%htitle%</span></a><span class="arrow">&raquo;</span></li>

    When I save this in de admin, this is changed to:
    <a href="%link%"><span>%htitle%</span></a><span class="arrow">&raquo;</span>

    Any idea why and how?

    https://www.ads-software.com/extend/plugins/breadcrumb-navxt/

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

    (@mtekk)

    Well you’re running into two problems here. The first is in 4.3 I added a call to wp_kses for all options that accept HTML. Since the li element is added by the bcn_display_list function, I did not add it to the ‘approved’ HTML tags for wp_kses. Additionally, I probably looked at an older set of valid HTML5 attributed to the approved a, span, and img tags because itemprop, itemscope, and itemtype are not in there right now (that’s what’s causing those to get stripped. I’m thinking these should be added.

    The second is that the data-vocabulary.org/google Rich Snippits breadcrumbs are deprecated in favor of the schema.org breadcrumbs (much less verbose, frankly the Rich Snippits breadcrumbs suck. Why place spans within an anchor when the anchor can hold the property too?, Why is the anchor of itemprop=”url” when it is well understood that anchors hold URLs?).

    Thread Starter geerthoekzema

    (@geerthoekzema)

    Hi Mtekk,

    Thanks for your reply.
    I’m using the schema.org data-vocabulary now. So all problems solved ??

    Thread Starter geerthoekzema

    (@geerthoekzema)

    Hi Mtekk,

    First of all. If you are changing you plugin it would be great if you would give a warning of somekind. I’m using the plugin on multiple sites (20+) and have to update a lot of sites because of the plugin is removing all the li’s and rich snippets.

    Second, i’ve implemented the rich snippets according to schema.org, but it isn’t showing up:

    See: https://www.uit-zeilen.nl/contact/
    and: https://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fwww.uit-zeilen.nl%2Fcontact%2F&html=

    Any ideas?

    Plugin Author John Havlik

    (@mtekk)

    I’ll look into it tomorrow evening, just a note, just because the web-masters tools doesn’t find the breadcrumb doesn’t mean Google doesn’t (I don’t use rich snippets on my site yet Google doesn’t have a problem finding my breadcrumb trail).

    Finally, something that may or may not annoy you, it is likely in a future version the li element will be allowed in the settings again. When working on something this weekend, I found a case where having more control over the li tag would be very useful.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rich snippets getting removed’ is closed to new replies.