• Resolved YanAndrew

    (@andrewyan)


    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.css

    FILE: 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 folder

    BOOTSTRAP 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.css

    CSS 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.css

    THE ABOVE NIVO-DEFAULT FOLDER
    1. arrows.png
    2. bullets.png
    3. default.css
    4. loading.gif

    FONT-AWESOME FOLDER IN ASSETS FOLDER
    a css folder containing
    1. font-awesome.css
    2. font-awesome.min.css

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter YanAndrew

    (@andrewyan)

    Nope, tried to redo it with the last} character removed, but not the one before, it still failed.

    Where have I gone wrong?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Okay that’s fine. I just think you don’t need to re-upload the entire .zip file again. Just the file you changed.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    it still failed.

    Are you still uploading the .zip file? If not, what do you mean by “failed”?

    Thread Starter YanAndrew

    (@andrewyan)

    Andrew,

    I’m going to try to install a plugin that creates a child-theme for me automatically. See if that works.

    I’ll update you.

    Thread Starter YanAndrew

    (@andrewyan)

    Andrew,

    The child-theme plugin worked.

    FYI, there’s a rtl.css file in the child-theme, which I have no idea what it is. It’s not present in the parent Freak theme and none of the instructions said to create it, so how would I know that there should be one.

    Anyway, I wanna say thank you for your patience and your help and guidance.

    Have a good evening.

    Andrew

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Problems with Child theme for Freak’ is closed to new replies.