Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5868
    lbourgeois
    Participant

    I am using Audioman Pro theme and have a child theme. How can I change the Portfolio breadcrumb to not be “project”

    https://kelliskreativedance.com/portfolio/

    #5882
    Skandha
    Keymaster

    @lbourgeois: Hello there,
    Go to => Child Theme Folder => functions.php and add the Code in this link.

    Now search for the code esc_html( '', 'audioman-pro' ) and add the text between the single quotes that would replace the breadcrumb text Project.

    Let me know if this works out!
    Kind Regards,
    Skandha

    #5884
    lbourgeois
    Participant

    Thanks! That worked great for the portfolio pages. But, the breadcrumb still shows as “Project” on the archive page. How can I update that page?

    Thanks!

    #5885
    Skandha
    Keymaster

    @lbourgeois: Hello there,
    For that Go to => Child Theme Folder => functions.php

    Search for the code echo isset( $post_type->labels->singular_name )

    Now replace that whole line of code by the following

    if( 'jetpack-portfolio' == get_post_type() ) { 
    	echo  $before . esc_html( 'Pictures and Videos', 'audioman-pro' ) . $after;
    } else { 
    	echo isset( $post_type->labels->singular_name ) ? $before . esc_html( $post_type->labels->singular_name ) . $after : '';
    }

    Now the Project text should show up as Pictures and Videos.

    Let me know if this works out!
    Kind Regards,
    Skandha

    #5894
    lbourgeois
    Participant

    That works. Thank you

    #5920
    Skandha
    Keymaster

    @lbourgeois: Hello there, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
    https://wordpress.org/support/plugin/essential-content-types/reviews/#new-post
    Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know. Have a great weekend! 🙂

    Kind Regards,
    Skandha

    #5968
    lbourgeois
    Participant

    The breadcrumbs are displaying on the site with my custom text, however the breadcrumb name is still showing in Google Search Console as “Project”. Is there a way to also change that name in the schema?

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Breadcrumb for Portfolio’ is closed to new replies.