Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #865222

    I copied the parent theme file to the child theme ,and modify the child theme’s file, but the site did not change. each time I needed to modify the parent theme file when i want to modify my site.
    please help me.

    #865223

    For example, I added the font of Microsoft YaHei, I had to modify the parent theme file

    #865524

    Hi,

    Ensure that you followed all these steps: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    John Torvik

    #866037

    hi dear,you don’t understand my meaning.
    i creat a child theme as you said,like: http://kriesi.at/documentation/enfold/using-a-child-theme/.i want to modify some functions,i must modify the file of parent.
    eg. i want to add social options at blog layout(“Share links at the bottom of your blog post”),i must modify the parent file.i creat the same name file in my child theme,but it does’t work. i know i must modify the file in the folder of “includes”.i creat the same file(register-admin-options.php) in child theme(includes>admin>register-admin-options.php) and modify the file of child theme.it doesn’t work. as the same question about JS file.

    could you help me?

    function overwrite_language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');

    the code is not work。

    • This reply was modified 6 years, 6 months ago by honest345.
    #866853

    Hi,

    That is because not everything is possible to be replaced from a child theme.
    So, can you let us know what are all the files you try, so we can see what can be and what not?

    Thank you very much for your patience

    Best regards,
    Basilis

    #866920

    Hello,Basilis
    I want to modify some files like:includes>helper-social-media.php,includes>admin>register-admin-options.php,js>avia.js,lang>zh_CN.mo zh_CN.po.
    could you help me?

    #867169

    anyone is here?

    #867223

    Hi honest345,

    You need to copy the files that you want to modify to the child theme, while preserving the folder structure, and make the changes there.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #867463

    i do it like what you said.but it doesn’t work.

    #867820

    Hi,

    Yes I am sorry, that is why I said on the start that is not everything possible to be replaced.
    The files inside include, cant be replace. The avia.js

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    Let us know if anything els

    Best regards,
    Basilis

    #868575

    yes,thanks for your response.
    i have another question about the child theme.
    i import the theme demo,the foreground layout will be changed.

    • This reply was modified 6 years, 6 months ago by honest345.
    #868821

    Hi honest345,

    What do you mean by “foreground layout”? New pages will be created and some of your pages might be overwritten.

    Best regards,
    Victoria

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