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?

#102109

mitchoo
Participant

I would like to receive an update on this. According to WordPress dequeuing doesn’t work if @import is also used. @import is even not considered best practice anymore. Yet both WPEstate and WPresidence still use @import. So how to properly use child versions of style.css and others under the css directory? What should be in the child.css and functions.php file and what .css files can then be placed under child? Thank you.

Following WordPress I created a functions.php as below, but it breaks my site, only blank pages show up:

<?php
<link rel=”stylesheet” id=”wpresidence-style-css” href=”/wpresidence/style.css” type=”text/css” media=”all”>

<link rel=”stylesheet” id=”custom-style” href=”/wpresidence/my_media.css” type=”text/css” media=”all”>

  • This reply was modified 2 years, 8 months ago by  mitchoo. Reason: added content