• hi,

    i want to create child theme. my original theme is oneengine. I′ve created oneengine-child folder where i have functions.php and style.css

    style.css contains: /*
    Theme Name: OneEngine Child
    Theme URI: https://www.startupweb/themes/oneengine-child
    Author: EngineThemes Team
    Author URI: https://www.enginethemes.com
    Template: oneengine
    Description: a free WordPress one-page theme, built with simplicity in mind and optimized for better user interactions
    Version: 1.1
    Tags: fluid-layout, responsive-layout, accessibility-ready, translation-ready
    License: GNU General Public License v3
    License URI: https://www.gnu.org/licenses/gpl-3.0.html
    */

    and functions.php contains:
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘oneengine-child_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘oneengine-child-style’, get_template_directory_uri().’/style.css’), array(‘oneengine-style’);

    }

    there is my website https://www.startupweb.sk
    please could you help me, where i did mistake and what should i change thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is the issue?

    David_G

    (@questas_admin)

    Try this:

    /*
    Theme Name:     OneEngine Child
    Theme URI:      https://www.startupweb/themes/oneengine-child
    Description:    a free WordPress one-page theme, built with simplicity in mind and optimized for better user interactions
    Author:         EngineThemes Team
    Author URI:     https://www.enginethemes.com
    Template:       oneengine
    Version:        1.1
    */
    /* Your customizations start here */

    And this for your functions:

    <?php
    
    ?>
    David_G

    (@questas_admin)

    Save your old one first.
    and remember there cannot be any white space on the functions.php file
    before <?php
    or after
    ?>

    Thread Starter morene

    (@morene)

    Thank you. I changed style.css and functions.php but something was wrong because image, pages… were only on the left half. so i put this:

    @import url(‘../oneengine/style.css’);

    to the end of style.css now it looks good. hope it will be alright.

    i had trouble making a child theme as well, try the orbisius child theme plugin, no need to go through ftp and you can create the child theme from your dashboard. it makes the style.css folder and then you just go to the plugin’s editor to make changes. super easy

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘child theme’ is closed to new replies.