Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM how to connect custom my_media.css in child theme? Reply To: how to connect custom my_media.css in child theme?

#102117

mitchoo
Participant

The approach below works for style.css. Still need advice how to enqueue my_media.css and the other .css files which are under /wpresidence/css/

1. create functions.php under child themes with this content

<?php

add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

}

2. remove the @import part under style.css

@import url(“../wpresidence/style.css”);