New Landing How can we help? Atelier Single product page — WC breadcrumb

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Atelier
  • #318812
    filipecardigosoliveira
    Member
    Post count: 73

    Hi, I want to change the breadcrumb trail from the single product page.
    It’s original trail is Home — Shop — Category — Sub — Product title
    I just want take out the Home link, so it can start with Shop — Category (…).
    I’ve managed to clear the first-child with CSS but the separator still hangs there..!

    Also, I changed the separator with :before property, I’d preferably do it through these functions, but these
    won’t work: https://docs.woocommerce.com/document/customise-the-woocommerce-breadcrumb/
    Any suggestions?
    Thanks!

    #319029
    David Martin – Support
    Moderator
    Post count: 20834

    Have you tried this within your child theme functions.php file?

    add_filter( 'woocommerce_breadcrumb_defaults', 'jk_change_breadcrumb_home_text' );
    function jk_change_breadcrumb_home_text( $defaults ) {
    	$defaults['home'] = '';
    	return $defaults;
    }
    #319031
    filipecardigosoliveira
    Member
    Post count: 73

    Indeed, but doesn’t do anything.
    I’m disabling the display:none at Home anchor for you to test it, if you will.

    #319200
    David Martin – Support
    Moderator
    Post count: 20834

    Can you add your FTP details?

    Thanks.

    #319246
    filipecardigosoliveira
    Member
    Post count: 73
    This reply has been marked as private.
    #319479
    David Martin – Support
    Moderator
    Post count: 20834

    Please add this to Theme Options => Custom CSS:

    .woocommerce-breadcrumb > a:first-of-type,
    .woocommerce .woocommerce-breadcrumb span.seperator:first-of-type {
      display: none !important;
    }
    #320046
    filipecardigosoliveira
    Member
    Post count: 73

    Hi David.
    Thanks for sorting it out.

    #320047
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help you 🙂

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register