• I would like to hide the post title on blog posts, in particular. Is there a way to do that? I’ve been able to do it in CSS by setting display: none, but the last separator is still there.

    Does anyone know how to accomplish this for blog posts in particular or even just for all pages?

    Thanks!

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

    (@mtekk)

    There are a few ways of accomplishing this. There is a very small plugin that will remove the current item for all pages (https://github.com/mtekk/Breadcrumb-NavXT-Extensions/blob/master/breadcrumb_navxt_remove_curitm.php) you can take that and modify it to only target the post post type (look for ‘post-post’ in the $types array). If you want a GUI to do this, you can exclude posts (of any post type) and terms (of any taxonomy type) with the uManager extension plugin.

    This is what I wanted to accomplish, too. No need for the blog post title to show up as a breadcrumb. It’s repetitive since it also appears as the actual title below the breadcrumb.

    But here’s a suggestion for anyone who happens to find this discussion: Replace the blog post title with something more generic, such as ‘Blog post.’ For my situation the reason I chose to do this has to do with being consistent in how categories are handled.

    I have categories and tags visible on the bottom of my blog posts. Click one of them and you’re taken to a categories or tags page with blog post excerpts. The breadcrumb looks like this:

    Homepage / Archive for Case updates

    Click on one of the excerpts and you’re taken to the permalink page for that blog post, which looks like this:

    Homepage / Case updates / The case of Casper the Friendly Ghost

    You’re no longer in the archives, but the shortened ‘Case updates’ breadcrumb will take you back there if you want. But if you remove the blog post title from the breadcrumb, you have two different formats for what reads as the same breadcrumb, although it’s not since you’re not in the archives. You can add pagination to full-content permalink pages, as I’ve done, but it still breaks consistency with the breadcrumb, since you now have two formats:

    Homepage / Archive for Case updates … and
    Homepage / Case updates

    So, I think the best practice is to keep the blog post title in the breadcrumb or replace it with a generic description, such as ‘Blog post’ or ‘Current reading:’ or some variation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding current page from breadcrumbs for posts’ is closed to new replies.