Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #770115

    Hi, i would like to change home to shop + change the link in breadcrumbs , how do i do this using a child theme ?

    #770205

    Hey jezza1961,

    Edit framework > php > class-breadcrumb.php , find this code:

    ‘show_home’ => __( ‘Home’, ‘avia_framework’ ),
    
    Replace it with:
    
    ‘show_home’ => __( ‘shop’, ‘avia_framework’ ),

    Best regards,
    Jordan Shannon

    #770259

    Thank you Jordan, that changed the text but not the link, how do i change the link to go to the shop page , also is there a way to do this in the child theme so when the theme is updated the changes are not lost ?

    #771183

    Hi,

    Can you please provide a link to the site. I need to see the link hierarchy.

    Best regards,
    Jordan Shannon

    #771635

    Hi Jordan

    thank you , i was able to achieve what i need with this code

    add_filter(‘avia_breadcrumbs_args’, ‘avia_change_home_breadcrumb’, 10, 1);
    function avia_change_home_breadcrumb($args){
    $args[‘show_home’] = false;
    return $args;
    }

    #771893

    Hi,

    Perfect! If you need additional help, please don’t hesitate to contact us here on the forums.

    Best regards,
    Jordan Shannon

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change home and link in breadcrumbs’ is closed to new replies.