Code Monkey home page Code Monkey logo

Comments (7)

 avatar commented on July 30, 2024 1

It's ok, I found in the official Wordpress Codex some code and it's work.

`
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {

$parent_style = 'hello-elementor'; 

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

}

`

from hello-theme-child.

jonathandhn avatar jonathandhn commented on July 30, 2024

Have the same here...

from hello-theme-child.

Mramorov avatar Mramorov commented on July 30, 2024

+1

from hello-theme-child.

EricSleep avatar EricSleep commented on July 30, 2024

Hi,

I downloaded yesterday the child theme and after instalation and activation, the function.php is working but the style.css doesn't work for me, i can't put any modifications there, i have to use the aditional CSS from Wordpress.

Anyone to help me to understand and fix this style.css?

thanks,
Eric

from hello-theme-child.

EricSleep avatar EricSleep commented on July 30, 2024

Hi,
a little update of my issue if someone can help me to understand why it's not working the child theme for me.
So, i installed WP from scratch + Hello Elementor parent and child theme on local without any customs, and it's working well, so i don't understand why it's not working on the web ?
Thx for your help!
Eric

from hello-theme-child.

rami-elementor avatar rami-elementor commented on July 30, 2024

All the information you need is documented in the Child Themes handbook.

from hello-theme-child.

Milad-jfr avatar Milad-jfr commented on July 30, 2024

@jonathandhn @EricSleep
seems the problem is with style version and cache related something ,
check this out :
#48 (comment)

from hello-theme-child.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.