Announcement

Collapse
No announcement yet.

remove current page title from breadcrumbs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • remove current page title from breadcrumbs

    i thought this would be simple when i found bill erickson's post on removing the current page from breadcrumbs, however it's not working on my site for some reason.

    almost all my pages use BB and i've tried to implement his bit of code conditionally for BB page templates. ive also tested a <a href="https://dev.farmfreshri.org/programs/harvest-kitchen/cafe-corner-store/breadcrumb-test/">simple page</a> using his original code and here too the current page title is showing up. is there any reason his code wouldnt be working on my site?


    site password: beets

    thanks for any insight.
    https://dev.farmfreshri.org/programs...-corner-store/

  • #2
    I would suggest to file a ticket with support staff from your My Account page for this one.

    Comment


    • #3
      ok! looks like i was targeting psots, not pages!! studiopress corrected the code to this:

      HTML Code:
      //* Remove Post Title from Breadcrumb.
      
      function be_remove_title_from_single_crumb( $crumb, $args ) {
       return substr( $crumb, 0, strrpos( $crumb, $args['sep'] ) );
      }
      
      // Remove Post Title from Breadcrumb on single post pages 
      add_filter( 'genesis_single_crumb', 'be_remove_title_from_single_crumb', 10, 2 );
      // Remove Post Title from Breadcrumb on single pages
      add_filter( 'genesis_page_crumb', 'be_remove_title_from_single_crumb', 10, 2 );

      Comment


      • SiGa
        SiGa commented
        Editing a comment
        Thanks for posting the solution!
    Working...
    X