child theme css is not loading?

Posted in: Newsmag
Post count: 15

Hi,

I am working with child theme given with newsmag 5.

I tried to work with css but style.css not even loading.


add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 11);
function theme_enqueue_styles() {
 wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', TD_THEME_VERSION, 'all' );
   wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), TD_THEME_VERSION . 'c', 'all' );
}

kindly, help me.

thanks

Post count: 35449

Hello,
Normally all that you need to do is to use the child theme from the theme version you are using. You can get it by downloading the full package (all files) from your themeforest account. Then copy the child theme in wp-content/themes and activate the child theme from WordPress, after that the css set in the style.css will apply for the website.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.