Speed up your Oxygen workflow

with Hydrogen Pack

A true Oxygens Editor Enhancer
Starts from $19.99

Register Print CSS

after the file path add array, version and then print

<php
wp_enqueue_style( 'print_css', plugin_dir_url( __FILE__ ) . 'assets/css/print.css', array(), '1.0.0', 'print' );

An entire block stored in function.php should look like this.

You can always add it as @media print but with this you will have much more flexibility and load it where you need it.

<php
// Styles
function theme_styles() {
    wp_enqueue_style( 'print_css', plugin_dir_url( __FILE__ ) . 'assets/css/print.css', array(), '1.0.0', 'print' );
}

add_action( 'wp_enqueue_scripts', 'theme_styles',  1000, 1 ) ;

More about Print CSS:

https://www.sitepoint.com/css-printer-friendly-pages/

https://www.smashingmagazine.com/2018/05/print-stylesheets-in-2018/

If you need help with custom scripts or you are not skilled enough to implement something from the tutorial?

HIRE ME

Stay up to date with latest post and updates.