Hello,
Below is a basic starter template for the functions.php file in a Woodmart Child Theme. This file is typically used to enqueue styles/scripts and add custom functionality:
<?php
/**
* Enqueue script and styles for child theme
*/
function woodmart_child_enqueue_styles() {
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'woodmart-style' ), woodmart_get_theme_info( 'Version' ) );
}
add_action( 'wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 10010 );
You can safely paste this into your functions.php file under your Woodmart child theme directory.
If your own code is deleted from functions.php,you can try restoring it. Check if your hosting provider offers daily backups—restore the file from a recent backup.
If you have any questions, feel free to contact us.
Best Regards,