• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to remove the last label in breadcrumb

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to remove the last label in breadcrumb

This topic is: not resolved

Tagged: breadcrumb

  • This topic has 2 replies, 2 voices, and was last updated 8 years ago by isaumya.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 7, 2015 at 2:31 am #143554
    isaumya
    Member

    Hi,
    I'm very new here in genesis and I'm loving it a lot. I'm using the genesis breadcrumb functionality on my site, but I want to remove the past part of the breadcrumb, i.e the post name itself. It's little silly when an user is reader a post the breadcrumb shows the post name and also the post shows the post title.
    Can anyone tell me how can I actually remove the post name from the breadcrumb? Also the last post name just get included as a normal text not like within any <p> tags or <span> tags so that I can do display none using css.
    So whats the solution? plz help.

    http://www.isaumya.com/atlast-the-new-design-is-released-with-genesis/
    March 7, 2015 at 9:05 pm #143626
    Brad Dalton
    Participant

    You can filter the breadcrumbs in Genesis


    Tutorials for StudioPress Themes.

    March 8, 2015 at 1:00 am #143635
    isaumya
    Member

    Thank you very much for the link. I've actually checked this link before using Google, but as you mentioned in the post

    <?php
    //* Do NOT include the opening php tag
    
    //* Prefix author breadcrumb trail with the text 'Articles written by'
    add_filter( 'genesis_breadcrumb_args', 'b3m_prefix_author_breadcrumb' );
    function b3m_prefix_author_breadcrumb( $args ) {
    
      $args['labels']['author'] = 'Articles written by ';
      return $args;
    
    }

    for the author label, but I want to remove the last part of the breadcrumb properly, so don't really know which filter to tweak. Take a look: https://www.diigo.com/item/image/3um1h/726j

    Will you please help me that which filter should I tweak? I'm very new here and still learning things up.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble