WP 4.6

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24742

    rpxl
    Participant

    Hi

    I am using wp version 4.6, when i activate theme its show error on front & backend
    { Fatal error: Call to undefined function get_parent_theme_file_path() }.

    Thanks

    #24746

    Artem Temos
    Keymaster

    Hello,

    We are glad to know that you considered using WoodMart for your web-site. I hope you will be happy with it.

    Please, provide us your admin access and FTP credentials so we can check this issue on your website.

    Kind Regards
    Xtemos

    #24803

    rpxl
    Participant

    Hi
    Details are

    #24817

    Artem Temos
    Keymaster

    Hi,

    Try to add this code snippet to the functions.php file in the child theme

    if( ! function_exists('get_parent_theme_file_path') ) {
    	function get_parent_theme_file_path( $file = '' ) {
    	    $file = ltrim( $file, '/' );
    	 
    	    if ( empty( $file ) ) {
    	        $path = get_template_directory();
    	    } else {
    	        $path = get_template_directory() . '/' . $file;
    	    }
    	 
    	    /**
    	     * Filters the path to a file in the parent theme.
    	     *
    	     * @since 4.7.0
    	     *
    	     * @param string $path The file path.
    	     * @param string $file The requested file to search for.
    	     */
    	    return apply_filters( 'parent_theme_file_path', $path, $file );
    	}
    }

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)