Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #571683

    Generally we create child theme to make all customization easy and maintain it same when new updates happened.

    However, today i have a question..i am little bit confuse.

    I want to customize this file: functions-set-avia-frontend.php which is located in parent theme look like this:Enfold/framework/php/functions-set-avia-frontend.php

    Folder “Enfold” >> Folder “framework” Folder “php” then file: functions-set-avia-frontend.php Right ?

    Now, i want to add the functions-set-avia-frontend.php to the Child Theme So its ok is it right, if it is right, then my file does not work which i tried already and add in child theme. it does not overwrite the parent ones file functions-set-avia-frontend.php

    Or

    I have to add the complete path with folder like this:

    Enfold/framework/php/functions-set-avia-frontend.php to the child theme to overwrite the parent ones…should i need to add the nested all folders to in child theme ?

    Please give me a reply with example.

    • This topic was modified 8 years, 11 months ago by hamzakhankhan.
    #572408

    Hey Hafeez Ullah!

    Please include the exact file path when you don’t wordpress will only recognize some files like header.php, footer.php etc

    Example:

    Parent Theme > file
    Child Theme > file

    Parent Theme > folder / file
    Child Theme > folder / file

    Please refer to https://wordpress.org/support/topic/overriding-parent-theme-sub-files-with-a-child-theme-how for more details.

    Regards,
    Vinay

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