• Resolved nellysimon

    (@nellysimon)


    Hi!
    I’m tring to fix a child theme for Llorex one Lite, but it dosn’t work properly.
    Can you pleas help me?
    Tanks
    Nelly

    in my stayl.css i got:
    /*
    Theme Name: Llorix-one-lite-child
    Theme URI: http://wordpress:8888/
    Description: llorix-one-lite Child Theme
    Author: Nelly Simonjan
    Author URI: http://example.com
    Template: llorix-one-lite
    Version: 1.0.0
    Text Domain: llorix-one-lite-child
    */

    and in my function.php:
    <?php

    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’ );

Viewing 1 replies (of 1 total)
  • This should be enough for the child theme’s function.php

    <?php 
    	 add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    	 function my_theme_enqueue_styles() { 
     		  wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); 
     		  } 
     ?>
Viewing 1 replies (of 1 total)

The topic ‘Childe theme’ is closed to new replies.