• Resolved ebj175

    (@ebj175)


    I have created a child theme of Catch Responsive but have noticed that two functions in catchresponsive-core.php are missing the test:
    if (! function_exists('function_name')

    The functions I found are:
    catchresponsive_footer_content (line 1353:catchresponsive-core.php)
    catchresponsive_get_first_image (line 1387:catchresponsive-core.php)

    Would it be possible to add the tests so these functions can be customized?

    Thanks,
    Bruce.

Viewing 2 replies - 1 through 2 (of 2 total)
  • HI @ebj175,

    These are so because these functions are not meant to be overridden by child theme.

    Regards,
    Pratik

    Thread Starter ebj175

    (@ebj175)

    Hi Pratik,

    I appreciate the response. Since I posted I used the following method to implement a custom footer. This way I don’t need to worry about parent theme updates.

    add_action( 'catchresponsive_footer', 'mbsf_footer_content', 100 );
    add_action( 'wp_loaded' , 'mbsf_add_and_remove' , 15 );
    function mbsf_add_and_remove() {
            remove_action( 'catchresponsive_footer', 'catchresponsive_footer_content', 100 );
    }

    mbsf_footer_content is the custom footer function.

    Thanks,
    Bruce.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘if !functions_exists test missing in catchresponsive-core.php’ is closed to new replies.