Home Forums Themes Support Claue How to create my custom css and js file in child theme?

Topic Resolution: Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #13855

      Hi,

      Please tell me how to create my custom css and js file in child theme??

      Regards

    • #13869

      Hi Kok Seng L,

      1. The child theme already have style.css file you can add your custom css code in this file.

      2. To add custom js you need create file custom.js in claue-child and add below code to line 14 before “}” functions.php in claue-child theme.

      wp_enqueue_script( 'custom-js', get_stylesheet_directory_uri() . '/custom.js' );

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 1 reply thread

You must be logged in to reply to this topic.