Problems with Child theme for Freak
-
Hi Guys,
I am having some problems creating a child theme for Freak and I’m exactly sure why. I’ve followed the instructions from WordPress’ page on creating a child theme, but somehow it isn’t working. When I tried to customise the page after activating it, it wouldn’t load, it’s just a blank white screen. Can someone please take a look for me and advise?
The instructions says if there is more than one css file, we need to make sure they are all replicated too, so I just copied the other css files and folders containing css files into the child theme folder and zip them up. After I have uploaded it, I cannot even load my website nor go to the WordPress editor screen. It just wouldn’t load. Not sure if the below is enough information or clear enough though.
Here are the components of my Freak child theme:
FOLDER: freak child
1. assets folder
2. functions.php
3. screenshot.png
4. style.cssFILE: functions.php
PHP tag (<?php)add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style )
);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );}
FILE: style.css
/*
Theme Name: Freak Child
Theme URI: https://sustainabilityreporting.asia/freak-child/
Description: Freak Child
Author: Rohit Tripathi
Author URI: https://rohitink.com
Template: freak
Version: 1.0.0.3
Tags: white, light, custom-background, two-columns, one-column, custom-colors, flexible-header, theme-options, right-sidebar, responsive-layout, custom-menu, sticky-post, theme-options, threaded-comments, translation-ready, featured-images, photoblogging, full-width-template, red, gray, custom-header
Text Domain: freak-child
*/FOLDER: assets
1. bootstrap folder
2. css folder
3. font-awesome folderBOOTSTRAP FOLDER IN ASSETS FOLDER
css folder containing:
1. bootstrap.css
2. bootstrap.css.map
3. bootstrap.min.css
4. bootstrap-theme.css
5. bootstrap-theme.css.map
6. boostrap-theme.min.cssCSS FOLDER IN ASSETS FOLDER
1. nivo-default folder
2. hover.min.css
3. jquery.flex-image.css
4. main.css
5. nivo-slider.css
6. slicknav.cssTHE ABOVE NIVO-DEFAULT FOLDER
1. arrows.png
2. bullets.png
3. default.css
4. loading.gifFONT-AWESOME FOLDER IN ASSETS FOLDER
a css folder containing
1. font-awesome.css
2. font-awesome.min.css
- The topic ‘Problems with Child theme for Freak’ is closed to new replies.