Home › Forums › Support › Child-Theme: print.css This topic has 7 replies, 2 voices, and was last updated 7 years, 6 months ago by Tom. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts September 20, 2015 at 4:31 pm #138331 Andreas Hello Tom, How can I load a print.css in my child theme? I have tried the following code, but without success <?php /** * Generate child theme functions and definitions * * @package Generate */ function child_script() { wp_enqueue_style( 'print', get_template_directory_uri() . '/print.css', null, null, 'print' ); } add_action( 'wp_enqueue_scripts', 'adamos_child_script' ); ?> September 20, 2015 at 4:42 pm #138332 Andreas I found my mistake … function child_script() { wp_enqueue_style( 'print', get_stylesheet_directory_uri() . '/print.css', null, null, 'print' ); } add_action( 'wp_enqueue_scripts', 'child_script' ); September 20, 2015 at 4:52 pm #138334 Andreas But it does not work! September 21, 2015 at 12:09 am #138376 TomLead Developer Lead Developer The above should work – can you confirm you have a print.css file in your child theme folder? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development September 21, 2015 at 1:04 am #138419 Andreas Yes , the file is located in the child-theme folder. But the changes are not shown… September 21, 2015 at 9:44 am #138513 TomLead Developer Lead Developer Can you link me to your site? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development September 22, 2015 at 3:18 am #138705 Andreas It works for me now…! September 22, 2015 at 10:20 am #138789 TomLead Developer Lead Developer Awesome 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In