Child theme

  • Unknown's avatar

    Hi, I am trying to create a child theme for my Organic themes – Luxury theme. I have done this before with no problems but for some reason when I upload my child theme for this particular theme it changes the look of the site completely (I have no css code so fare) usually until I add code my site looks the same as if I was just using the parent theme.

    MY STYLE.CSS CODE
    /*
    Theme Name: Luxury Child
    Theme URI:
    Description: Luxury Child Theme
    Author:
    Author URI:
    Template: luxury
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags:
    Text Domain: luxury-child
    */

    MY FUNCTIONS.PHP CODE
    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘luxury’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    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 ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

  • Unknown's avatar

    Hello @rochellerebecca!
    Can you confirm whether your website is hosted on WordPress.com?

    If you are using a self-hosted version of WordPress please open a support request on https://wordpress.org/support/forums/. Folks there will help you to sort it out.

    You can read more about WordPress.com & WordPress.org here:
    https://en.support.wordpress.com/com-vs-org/

    If you’re a hosted on WordPress.com let us know the domain name.

    Hope this helps.
    Good day!

  • Hi there,

    As you don’t have any WordPress.com sites on the Business Plan it’s not possible for you to upload your own theme to a site here, so I’m guessing you are using the open source WordPress software instead. Please post in the WordPress.org forums for help with this.

    You can find the support forum for the Luxury theme here:

    https://wordpress.org/support/theme/luxury

    @achyuthajoy

    We do not provide support for creating/editing child themes, even for sites hosted on WordPress.com. Best to direct people to the theme-specific forum on WordPress.org or the theme developer for help with that.

  • Unknown's avatar

    @kokkieh Thanks for the info. Noted

  • The topic ‘Child theme’ is closed to new replies.