Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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 !

    #189247

    Hey 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,
    Devin

    #189282

    Thanks Devin
    It should be include, but it’s not :)
    I’ve got to overide the config-templatebuilder/avia-template-builder/config/meta.php file

    Thanks 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

    #189324

    If 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.

    #189549

    Ok devin
    I wanted to be clean and not to touch the parent child…But I’m afraid this is the only solution

    Great 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.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘file meta.php’ is closed to new replies.