Tagged: Custom Post Type
-
AuthorPosts
-
November 14, 2013 at 3:55 pm #188399
Hi
Thanks to your tuts and video, I’ve successfully add an new custom post type. Eveything work…Everything but one point : the meta.php file in the child theme I use, is not taken in account : I must add it int he parent theme.
How can I overide the meta.php (in functions.php) with my modified file in the child theme ?Thanks !
November 15, 2013 at 4:08 pm #189247Hey Ikyo!
You would need to include the file through your childs functions. See: http://wp.tutsplus.com/tutorials/creative-coding/how-to-include-and-require-files-and-templates-in-wordpress/
By default child themes only automatically include items in the root of the folder.
Regards,
DevinNovember 15, 2013 at 5:03 pm #189282Thanks Devin
It should be include, but it’s not :)
I’ve got to overide the config-templatebuilder/avia-template-builder/config/meta.php fileThanks to your advice, I’ve add an include to my functions.php’ child theme, but I encounter a error :
Fatal error: Class 'AviaHelper' not found in /homepages/23/d485016194/htdocs/wp-content/themes/FFF-Child/config-templatebuilder/avia-template-builder/config/meta.php on line 195
line 195 is
"subtype" => AviaHelper::get_registered_sidebars(array('Default Sidebars' => ""), array('Displayed Everywhere'))
So the avia helper is not found. I’ve copy in the structure of my child theme config-templatebuilder/avia-template-builder/php/generic-helper.class.php
But he error is the same :(Thanks for your kindful help
November 15, 2013 at 5:52 pm #189324If its only the single line in the file I would suggest just editing the parent. Then keep a change log for your records so you can re-update it when needed.
November 16, 2013 at 8:39 am #189549Ok devin
I wanted to be clean and not to touch the parent child…But I’m afraid this is the only solutionGreat Thanks for your help and the quality of the support
Many other would have told me : “it’s beyond our scope”This deserve a 5 stars *****
- This reply was modified 11 years, 1 month ago by Ikyo.
-
AuthorPosts
- The topic ‘file meta.php’ is closed to new replies.