-
AuthorPosts
-
October 17, 2017 at 10:43 am #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.October 17, 2017 at 10:48 am #865223For example, I added the font of Microsoft YaHei, I had to modify the parent theme file
October 18, 2017 at 5:19 am #865524Hi,
Ensure that you followed all these steps: http://kriesi.at/documentation/enfold/using-a-child-theme/
Best regards,
John TorvikOctober 19, 2017 at 3:44 am #866037hi 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 7 years, 1 month ago by honest345.
October 20, 2017 at 8:50 pm #866853Hi,
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,
BasilisOctober 21, 2017 at 4:05 am #866920Hello,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?October 22, 2017 at 8:51 am #867169anyone is here?
October 22, 2017 at 5:22 pm #867223Hi 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,
VictoriaOctober 23, 2017 at 6:58 am #867463i do it like what you said.but it doesn’t work.
October 23, 2017 at 8:26 pm #867820Hi,
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.jsfunction 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,
BasilisOctober 25, 2017 at 7:50 am #868575yes,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 7 years, 1 month ago by honest345.
October 25, 2017 at 5:09 pm #868821Hi honest345,
What do you mean by “foreground layout”? New pages will be created and some of your pages might be overwritten.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.