HEX
Server: Apache/2
System: Linux vps.uva06 3.10.0-1160.118.1.el7.x86_64 #1 SMP Wed Apr 24 16:01:50 UTC 2024 x86_64
User: noithat7 (1010)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /home/noithat7/domains/noithat7.com/public_html/wp-content/themes/betheme-child/functions.php
<?php
/**
 * Betheme Child Theme
 *
 * @package Betheme Child Theme
 * @author Muffin group
 * @link https://muffingroup.com
 */

/**
 * Load Textdomain
 */

function mfn_load_child_theme_textdomain(){
	load_child_theme_textdomain('mfn-opts', get_stylesheet_directory() . '/languages');
	load_child_theme_textdomain('betheme', get_stylesheet_directory() . '/languages');
}
add_action('after_setup_theme', 'mfn_load_child_theme_textdomain');

/**
 * Enqueue Styles
 */

function mfnch_enqueue_styles()
{
	// enqueue the parent stylesheet
	// however we do not need this if it is empty
	// wp_enqueue_style('parent-style', get_template_directory_uri() .'/style.css');

	// enqueue the parent RTL stylesheet

	if ( is_rtl() ) {
		wp_enqueue_style('mfn-rtl', get_template_directory_uri() . '/rtl.css');
	}

	// enqueue the child stylesheet

	wp_dequeue_style('style');
	wp_enqueue_style('style', get_stylesheet_directory_uri() .'/style.css');
}
add_action('wp_enqueue_scripts', 'mfnch_enqueue_styles', 101);