CSS (début, wip)

This commit is contained in:
Eric van der Vlist 2025-03-20 18:11:52 +01:00
parent ea1dd58ce9
commit d8d3d81f5b
2 changed files with 30 additions and 0 deletions

13
assets/wp-pdf-helper.css Normal file
View File

@ -0,0 +1,13 @@
@media print {
video, header, .plyr, .leaflet-marker-photo, .leaflet-top {
display: none !important;
}
.wp-block-group {
}
}

17
wp-pdf-helper.php Normal file
View File

@ -0,0 +1,17 @@
<?php
/*
* Plugin Name: WP PDF Helper
* Description: Helps to print pages and posts as PDF
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
add_action('wp_enqueue_scripts', 'wpdfh_enqueue_scripts');
function wpdfh_enqueue_scripts() {
wp_enqueue_style( 'wpdfh', plugin_dir_url( __FILE__ ) . 'assets/wp-pdf-helper.css' );
}