How to override parent Davinci theme setting using child theme?

Shiv Kumar

New Member
I want to change default Davinci theme setting
'thumbnail_image_width' => 350
inside include/core/functions/function-setup.php
to some other value using a child theme.
How can it be possible?
 

chris37

Well-Known Member
I want to change default Davinci theme setting
'thumbnail_image_width' => 350
inside include/core/functions/function-setup.php
to some other value using a child theme.
How can it be possible?
Create a child theme first then activate.

Go to the files of the parent theme you want to overide and copy the specific file to your child theme.

Then modified you child theme file, any change you make here they gonna stay like this even if the parent theme get update.
 

Shiv Kumar

New Member
Create a child theme first then activate.

Go to the files of the parent theme you want to overide and copy the specific file to your child theme.

Then modified you child theme file, any change you make here they gonna stay like this even if the parent theme get update.

Thanks chris37, I think I found a little better idea for this by creating a custom function in child theme with priority set to 11 (default is 10)
 
Top