Child theme template file is not overwritting the one from the parent

Pending
Lorada - Responsive Elementor eCommerce Theme Lorada - Responsive Elementor eCommerce Theme November 09, 2020
Login to reply
Amand C Support Agent
3 weeks ago

Hi, Jovan

Thank you.

If you have any other questions, please feel free to contact us at any time.

And we'll be very thankful, if you give 5 stars and feedback to our item.

Best Regards, C-Themes

Jovan Djokovic
3 weeks ago

Hi Amand,

Thanks again for being so fast in responding, you've saved me tremendous amount of time and energy! 😄

Best,
Jovan

Amand C Support Agent
3 weeks ago

Hi, Jovan

First, thank you for your information and efforts.

We checked your admin in detail and you have tried a lot to change the header layout.

Yes, you are right.

In originally, all template files can be override on child theme.

But element-functions.php file is not template file. That is in template folder, but not template file.

That "element-functions.php" file is included on php code using "require_once" like screenshot.

https://prnt.sc/vg6dam 

So you can't override this php file on your child theme.

The solution is to override php functions, not php file.

As you can see, there is "lorada_generate_header" function on elementor-functions.php like screenshot.

https://prnt.sc/vg6ekj 

You can override and change these functions on your child theme.

We already override these functions on your child theme->functions.php file.

So your modification is rendered on front-end like screenshot,

https://prnt.sc/vg6fse 

If you have any other questions, please let us know again without hesitation.

Best Regards, C-Themes

Jovan Djokovic commented privately
Amand C Support Agent
3 weeks ago

Hi, Jovan

First, thanks for your contact.

Could you share your website URL and admin info?

Then, we'll check your child theme in detail and provide solution quickly.

Best Regards, C-Themes

Jovan Djokovic
3 weeks ago

Hi,

I'm struggling a bit with having the child theme file affect the site. In this particular case I'm trying to modify header.php file, and even though I have created it  with the same folder structure in the child theme it's still not affecting any parts of the header.
On the other hand when I try to update the same file from the parent theme, all changes are showing up on site as expected.
Could you please let me know if there is something I'm missing when trying to get to work child theme changes?

Best,
Jovan