how to change “home” text in breadcrumb in astra

  • Unknown's avatar

    I am new here and I have few experience with WordPress. I activated Astra theme and it comes with nice breadcrumbs. But I need to change “Home” text with “Acasă’. So, I created an astra-child theme containing the 3 standard files:

    functions.php

    <?php
    /**
     * Astra Child Theme functions and definitions
     *
     * @link https://developer.wordpress.org/themes/basics/theme-functions/
     *
     * @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 );
    
    
    
    /**
     * ***********************************************************
     * Inlocuim 'Howdy' cu 'Bun venit' - 08-04-23
     */
    function replace_howdy( $wp_admin_bar ) {
    $my_account = $wp_admin_bar->get_node( 'my-account' );
    $greeting = str_replace( 'Howdy,', 'Bun venit,', $my_account->title );
    $wp_admin_bar->add_node( array(
    'id' => 'my-account',
    'title' => $greeting,
    ) );
    }
    add_filter( 'admin_bar_menu', 'replace_howdy', 25 );
    //***************************************************************
    
    
    /**
     * **************************************************************
     * Rename "home" in breadcrumb
     */
    
    //*****************************************************************
    

    style.css

    /**
    Theme Name: Astra Child
    Author: Ingenium Development
    Author URI: http://wpastra.com/about/
    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 schema.org 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: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: astra-child
    Template: astra
    */

    I tried some codes found on Internet in order to change “home” text in breadcrumb but no one was working. Please help me to solve this problem.

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Apologies, but we can’t help with your issue directly because we don’t host your site on our WordPress.com managed hosting.

    To explain, we are a fully managed hosting provider and use a custom server environment that is optimized for WordPress, provides built-in security and performance improvements, as well as in-house support for your site questions.

    Because of the way we’ve optimized our service, we also use a customized version of WordPress that is different (under the hood) from what you use at your current provider. As a result, we do not have access to your site and are not familiar with the source of your issue.

    You definitely have the option to move your site to us so we can provide in-house help, using our migration plugin: https://wordpress.org/plugins/wpcom-migration/ and the site would need to be on the business plan.

    As it stands now, we cannot help since it is hosted elsewhere. The good news is that help is available here at the open-source WordPress forums: https://wordpress.org/support/forum/how-to-and-troubleshooting

    The folks in that forum are more familiar with these kinds of issues and are in the best position to help. Thanks!

  • The topic ‘how to change “home” text in breadcrumb in astra’ is closed to new replies.