Remove CSS from the head filter not working
-
Hi
other than de-enqueuing the plugin stylesheet (*pdfprnt_stylesheet-css”), there does not seem to be way to disable the plugin css loading in head of all pages/posts. Even with “Use the theme stylesheet or plugin default style” set to > current theme stylesheet. Since we combine and minify our stylesheet to one document, we don’t need this added to every page head:<link rel='stylesheet' id='pdfprnt_stylesheet-css' href='sitenameurlhere/plugins/pdf-print/css/style.css' type='text/css' media='all'/>
Also, the addition of filter in the functions.php to append something like site credit and URL, or link to the article (the link to the story really should be option by default to add to footer of the generated PDF). Using explicitly this example: https://bestwebsoft.com/products/pdf-print/faq
add_filter( 'bwsplgns_get_pdf_print_content', function( $content ) { $my_content = "Story originally published on my sitename and URL go right here."; /* if you want add some data after the main content */ return $content . $my_content; } );
Happy to get the PRO version, but the above would need to be addressed for our use. We only need the PDF function, and are making custom on page button using Font Awesome icon to match the rest of the elements.
Thanks for any response ??
- The topic ‘Remove CSS from the head filter not working’ is closed to new replies.