Results 1 to 1 of 1

Thread: Problem with child theme creation

  1. #1
    Thread Starter
    ozgursar's Avatar
    Join Date
    Mar 2013
    Location
    Turkey
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Samcy Problem with child theme. Please help!
    By abcdqwer in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: May 5th, 2013, 10:22 AM
  2. [SOLVED] Having problem with your child theme
    By jax2013 in forum Commerce & Classifieds
    Replies: 3
    Last Post: May 2nd, 2013, 10:01 AM
  3. [SOLVED] Classipress Child Theme Creation Problem
    By mouse in forum Help Using ClassiPress
    Replies: 4
    Last Post: January 16th, 2013, 02:35 PM
  4. Search Bar Problem and Child Theme IE9 problem
    By akent64 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: February 21st, 2012, 03:19 AM