• 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

Breadcrumb issue

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 › Breadcrumb issue

This topic is: not resolved

Tagged: breadcrumb

  • This topic has 5 replies, 3 voices, and was last updated 3 years, 2 months ago by seothemes.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 21, 2020 at 8:52 am #496081
    panatan
    Participant

    Hi all !

    I'm using genesis framework and i've got a problem with breadcrumb feature.

    I've got an error in Google search console => Either “name” or “item.name” should be specified.
    I'm using native Breadcrumb function, and don't know why i've got this message.

    Thank you and best regards

    https://www.dogwash.fr
    January 21, 2020 at 2:37 pm #496092
    Anita
    Keymaster

    On what page? Home, page, blog?


    Love coffee, chocolate and my Bella!

    January 21, 2020 at 3:46 pm #496097
    panatan
    Participant

    The issue in shown in the search console (Google dashboard).
    Breadcrumb is activated only on Single Posts.

    Thx

    January 21, 2020 at 4:35 pm #496098
    Anita
    Keymaster

    I see a dash - Un dogwash à Orthez…. Did you manually add the dash in there?


    Love coffee, chocolate and my Bella!

    January 22, 2020 at 6:41 am #496105
    panatan
    Participant

    Hi Anita and thank you for helping.
    Well no i don't add manually the dash but i'm using the following snippet where you can see => $args['sep'] = ' - ';

    add_filter('genesis_breadcrumb_args', 'customize_breadcrumbs');
    function customize_breadcrumbs($args) {
        $args['labels']['prefix'] = '';
        $args['home'] = '<i class="fas fa-home"></i>';
        $args['sep'] = ' - ';
        return $args;
    }

    Do you mean that it's wrong ?
    Thx

    January 22, 2020 at 9:05 pm #496117
    seothemes
    Member

    The code snippet is what's causing the issue.

    It's showing an error because there is no text to be used as the item name for the "home" item, it is being replaced with an icon which is not a valid name.

    Changing the code snippet to the following will fix the issue for you:

    
    add_filter( 'genesis_breadcrumb_args', 'prefix_customize_breadcrumbs' );
    /**
     * Customize breadcrumbs args.
     *
     * @since 1.0.0
     *
     * @param array $args Default breadcrumb args.
     *
     * @return array
     */
    function prefix_customize_breadcrumbs( $args ) {
    	$args['labels']['prefix'] = '';
    	$args['sep']              = ' - ';
    	$args['home']             = '<i class="fas fa-home"><span class="screen-reader-text">Home</span></i>';
    
    	return $args;
    }
    
  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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