Problem with child theme creation
Hi,
I read several post in this forum and
WP codex about making child theme, especially for files at subfolders and I know that I have to use hooks.
I want to overwrite step-functions.php at subfolder by child theme. I modified step-functions.php by adding below snippet before $ad_expire_date only;
PHP Code:
if( isset( $advals['cp_lan_sresi'] ) ) {
$ad_length = $advals['cp_lan_sresi'] ;
}
The path of step-functions.php is defined at function template_redirect() in views.php.
I insert below code to functions.php of child theme.
PHP Code:
if ( !function_exists('template_redirect') ) :
function template_redirect() {
.......
copy of modifed template_redirect function
....
}
endif;
But It doesn't work.
Where I did mistakes?
What have I to do to overwrite it by child theme. Or, how can I change $ad_length value by child theme functions.php?
Could you give some advise, please?
Regards