Remove Category from breadcrumbs

Home Forums Magazine Point Remove Category from breadcrumbs

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Axle Support 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1296

    Axcel
    Participant

    Here is the breadcrumbs
    Home > Image > Pink Flower Widescreen > View > Pink Flower Desktop Wallpapers

    Image and View is category with ID 1 and 2
    Is it possible to remove category from breadcrumbs?
    Thanks in advance

    #1303

    Axle Support
    Moderator

    For breadcrumb, theme uses popular library named Breadcrumb Trail. You can find several hooks in the breadcrumb library. See vendors/breadcrumbs/breadcrumbs.php. Please be informed, that breadcrumb customization will need pretty good chunk of custom coding. You can create child theme and customize it. Here is the link regarding creating child theme. https://developer.wordpress.org/themes/advanced-topics/child-themes/

    #1307

    Axcel
    Participant

    I just add comment at
    // $terms = get_the_terms( $post_id, $taxonomy );
    in vendors/breadcrumbs/breadcrumbs.php and category removed from breadcrumb.

    Thank you

    #1316

    Axle Support
    Moderator

    Ok, that will work. But I would like to remind you that, those direct changes of the theme will be removed when new version is released. So, we always recommend to use child theme for customization.
    Good day.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.