Suport » Probleme și soluții » cum sa modific „home” din breadcrumbs

  • Sunt nou in utilizarea WP as ca va rog sa ma ajutati. Doresc sa inlocuiesc cuvantul „home” din breadcrumbs cu „Acasă”. Am instalat WordPress 6.2, tema este Astra 4.1.3., Woocommerce 7.5.1. Am creat o tema „child” numita Astra-child containing 3 files:


     * Astra Child Theme functions and definitions
     * @link
     * @package Astra Child
     * @since 1.0.0
     * Define Constants
    define( 'CHILD_THEME_ASTRA_CHILD_VERSION', '1.0.0' );
     * Enqueue styles
    function child_enqueue_styles() {
    	wp_enqueue_style( 'astra-child-theme-css', get_stylesheet_directory_uri() . '/style.css', array('astra-theme-css'), CHILD_THEME_ASTRA_CHILD_VERSION, 'all' );
    add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 );
    //* urmeaza modificari
    add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_home_text' );
    function wcc_change_breadcrumb_home_text( $defaults ) {
    // Change the breadcrumb home text from 'Home' to 'Acasă'
    $defaults['home'] = 'Acasă';
    return $defaults;


    Theme Name: Astra Child
    Author: Brainstorm Force
    Author URI:
    Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI:
    Text Domain: astra-child
    Template: astra


    In „functions.php” am adugat instructiuni pentru schimbarea cuvantului „home” in „Acasă” dar nu se intampla nimic. Oare ce am gresit?

    Pagina pentru care am nevoie de ajutor: [autentifică-te pentru a vedea legătura]

  • Subiectul „cum sa modific „home” din breadcrumbs” este închis pentru răspunsuri noi.