Installing a Child Theme & editting the style.css
Hi,
I am trying to install the child theme and edit the style.css file. I left the functions.php file as default and the stylesheet is not loading as should be. It's taking quite a long time for the page to load, which might be because of some overriding issue. Can you help me sort it plz?
Test Website: http://b2bmalta.vtest356.tk
The code is here:
Functions.php File (Child Theme)
<?php
/**
* Betheme Child Theme
*
* @package Betheme Child Theme
* @author Muffin group
* @link https://muffingroup.com
*/
/**
* Child Theme constants
* You can change below constants
*/
// white label
define('WHITE_LABEL', false);
/**
* 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);
/**
* Load Textdomain
*/
function mfnch_textdomain()
{
load_child_theme_textdomain('betheme', get_stylesheet_directory() . '/languages');
load_child_theme_textdomain('mfn-opts', get_stylesheet_directory() . '/languages');
}
add_action('after_setup_theme', 'mfnch_textdomain');
/**
* Betheme Child Theme
*
* @package Betheme Child Theme
* @author Muffin group
* @link https://muffingroup.com
*/
/**
* Child Theme constants
* You can change below constants
*/
// white label
define('WHITE_LABEL', false);
/**
* 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);
/**
* Load Textdomain
*/
function mfnch_textdomain()
{
load_child_theme_textdomain('betheme', get_stylesheet_directory() . '/languages');
load_child_theme_textdomain('mfn-opts', get_stylesheet_directory() . '/languages');
}
add_action('after_setup_theme', 'mfnch_textdomain');
--------------------------------------------------
The style.css is pretty much empty, except for the initial description.
Comments