John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Suppress Breadcrumbs on Category PagesThe easiest way to prevent the breadcrumb trail from showing up on a page is to surround the call to
bcn_display()with an if statements that checks against the appropriate conditional tag. In this case, you probably want to use something like the following for your calling code:<?php if(function_exists('bcn_display') && !is_category() && !is_tag() && !is_tax()):?> <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/"> <?php bcn_display();?> </div> <?php endif; ?>Forum: Plugins
In reply to: [Breadcrumb NavXT] Constantly errors appear@fierevere Thanks for looking into this! I’ll look into the other languages this weekend and identify the others with a similar issue.
@vulkan3 Please see if you are still experiencing this issue.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Constantly errors appearThis is due to a problem in the Russian translation. Both are caused by a single incorrectly translated string, likely due to it not getting updated (.org is serving a fuzzy translation which isn’t good). The problem is
%1$swas replaced with%htitle%which causes the error. See: https://translate.wordpress.org/projects/wp-plugins/breadcrumb-navxt/dev/ru/default?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=580294&filters%5Btranslation_id%5D=23188824- This reply was modified 7 years, 3 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Replace site title with “Home”@mario62rus: If you’re using Polylang or WPML there are extension plugins that aid in this. Otherwise, you can write a filter to hook into the
bcn_breadcrumb_titleand change it programmatically.For the templates and other HTML accepting settings, only certain HTML tags are allowed by default. SVG is not currently one of them. I’ll look at adding SVG to the allowed HTML elements for the next version. In the meantime, you can enable SVG using the
bcn_allowed_htmlfilter. This article provides an example of how to add a tag to the allowed set of HTML tags: https://mtekk.us/archives/guides/how-to-add-li-and-other-tags-to-breadcrumb-templates/Forum: Plugins
In reply to: [Breadcrumb NavXT] Child theme’s header.php refuses NavXT code codeI suggesting using your web browser’s built in inspector tool to adjust the CSS styling on the breadcrumb trail. Once you get the desired styling, add your CSS modifications to your child theme’s style.css.
For physically moving the breadcrumb trail, you can play with the padding or margin for the
divsurrounding the breadcrumbs. Targeting mobile screens requires media-queries. I suggest reading up on these (css-tricks is a good resource).Forum: Plugins
In reply to: [Breadcrumb NavXT] “Blog Breadcrumb” with custom post typeOn the single custom post type posts, what does the page linked to by “Cakes” have for its breadcrumb trail? By default, this should just work (it does on my testbed and my website for the CPTs I’m using)—the breadcrumb trail for the archive page for a CPT isn’t really affected by the settings for the CPT (beyond the root page setting, but that shouldn’t be applicable for this situation).
- This reply was modified 7 years, 3 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Child theme’s header.php refuses NavXT code codeSo it looks like the “Search” page is set as the parent of “Reviews”. Having it show up only when “Reviews” is a root page, but not when on “Reviews” seems odds odd. My only guess as to why this happens when “Reviews” is added as a root page rather than just on that page is due to something messing with what is returned by
get_post()for that post’s ID on that page (it has a parent that is “Search” on the one page and on the other it does not).Forum: Plugins
In reply to: [Breadcrumb NavXT] Child theme’s header.php refuses NavXT code codeFor the two pages pictured, it would really help to see the actual HTML generated by Breadcrumb NavXT for the breadcrumb trail.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Class for the breadcrumbUnless you changed something since your last post, it appears the separators are the same on both linked pages. Or, at least for me they are rendered the same (> character).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Child theme’s header.php refuses NavXT code codeCan you post the markup generated by Breadcrumb NavXT on that page (a picture or pastebin or something)?
Forum: Plugins
In reply to: [Breadcrumb NavXT] Child theme’s header.php refuses NavXT code codeTry splitting the code out to multiple lines, at first glance the code looks correct. So, my guess is the issue the parser in the theme editor. For reference, below is the exact code I use for calling the breadcrumb trail on my site:
<div class="breadcrumbs" vocab="http://schema.org/" typeof="BreadcrumbList"> <?php if(function_exists('bcn_display')) { bcn_display(); } ?> </div>Forum: Plugins
In reply to: [Breadcrumb NavXT] Change blog URLsHonestly, it’s going to be easier to use a custom post type for you news entries and let the built-in WordPress Post (post type) be for just blog entries. See https://developer.wordpress.org/reference/functions/register_post_type/ and https://codex.wordpress.org/Post_Types#Custom_Post_Types for more information on Custom Post Types. Then with the News CPT, set the “Root Page” to your “News” page in the Breadcrumb NavXT settings. For the Blogs page, simply set that as the page for posts in the WordPress settings (Settings > Reading). At that point you can individually control the hierarchy used for the two different post types representing the two different sections (you can still use the category taxonomy for both post types if you want).
Could you elaborate on what you are trying to do? The default Breadcrumb Templates will include a
%type%tag in aclass=''field. The current item will have thecurrent-itemclass which you can target.Unfortunately, I’m not sure what you mean by
add current item title before breadcrumb
. Could you provide more detail on this?
Forum: Plugins
In reply to: [Breadcrumb NavXT] Class for the breadcrumbI’m a little confused by your request. On the page that you linked to that is using Breadcrumb NavXT, the icon is being added via CSS rather HTML markup (via modifying the home template settings for Breadcrumb NavXT). As it stands, you won’t be able to add a class to your icon as long as it is added via CSS. I recommend switching to using the Home template in the Breadcrumb NavXT settings page to add the icon. It should be as simple as adding the HTML markup for an image (e.g. an
imgtag) to the Home Template and Home Template (unlinked) settings. The following article discusses how to modify the template to include the icon: https://mtekk.us/archives/guides/use-an-iconimage-for-the-home-breadcrumb/