/** * * [Parent Theme] child theme functions and definitions * * @package [Parent Theme] * @author OceanThemes * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * When using a child theme you can override certain functions (those wrapped * in a function_exists() call) by defining them first in your child theme's * functions.php file. The child theme's functions.php file is included before * the parent theme's file, so the child theme functions would be used. * * @link https://codex.wordpress.org/Theme_Development * @link https://codex.wordpress.org/Child_Themes * * Functions that are not pluggable (not wrapped in function_exists()) are * instead attached to a filter or action hook. * * For more information on hooks, actions, and filters, * {@link https://codex.wordpress.org/Plugin_API} */ /** * Set up My Child Theme's textdomain. * * Declare textdomain for this child theme. * Translations can be added to the /languages/ directory. */ function onum_theme_setup() { load_child_theme_textdomain( 'onumchild', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'onum_theme_setup' ); add_action( 'wp_enqueue_scripts', 'onum_theme_enqueue_styles' ); function onum_theme_enqueue_styles() { $parenthandle = 'onum-parent-style'; $theme = wp_get_theme(); wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', array(), $theme->parent()->get('Version') ); wp_enqueue_style( 'onum-child-style', get_stylesheet_uri(), array( $parenthandle ), $theme->get('Version') ); } Mohiuddin – PPC DM