Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1093401

    I am trying to make changes to the class-breadcrumb.php file via FTP (using FileZilla). I downloaded the class-breadcrumbs.php file from the parent theme folder, made the following changes:

    ‘show_home’ => __( ‘Home’, ‘avia_framework’ ),

    to

    ‘show_home’ => __( ‘Core Sensors’, ‘avia_framework’ ),

    Basically changing the word “Home” on the breadcrumbs trail to the company name of the website.

    I then re-upoaded the new file to my Enfold-child folder with the same name as the parent folder. My understanding was that this would then tell the child theme to override the parent theme. However, went i do the upload, clear any cache from the website, the changes I made are not showing.

    I checked in my functions.php file in my child theme and noticed there are no enqueue hooks (correct terminology?) to the parent theme. Mine only shows the following:

    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    // END ENQUEUE PARENT ACTION
    if ( is_home() ) {
    remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_breadcrumb’, 10, 0);
    }

    Am I missing something in my functions.php file to make the files in my child theme active.

    #1093875

    Hey coresensors,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #1094058

    Are you saying that Enfold does not support changes to the code structure in a child theme? If so, that is a major flaw. I can obviously make the change in the parent theme but it will just be overwritten the next time there is an update.

    Is there no enqueue hook codes that I should be placing in my child themes functions.php file? For example, if I wanted to make a change to the breadcrumbs that required structure coding other than CSS, would that be possible in a child theme?

    #1095244

    Hi coresensors,

    Enfold does support code changes in the child theme, but they do not always work as expected.

    You can look for a plugin that will allow you to customize the breadcrumbs as you need.

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.