开发者 |
daveshine
deckerweb |
---|---|
更新时间 | 2019年2月21日 23:27 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 5.1 |
版权: | GPL-2.0+ |
版权网址: | 版权信息 |
Optimized: Saves You Printing Ink & Paper :) This small and lightweight plugin adds a printer-ready stylesheet file (print.css / print-html5.css) for the Genesis Framework and its currently active child theme. Any unneeded site elements will be removed, such as main and sub navigation bar, sidebar, footer widgets, form input fields to name a few. For most use cases and most existing/ regular Genesis Child Themes this should work really fine!NEW since version 1.5.0+ For fully custom styles or additions just have look at the FAQ section here. :) It is now really easy to handle and complete update-safe! Please note: The plugin requires the Genesis Theme Framework (GPL-2.0+), a paid premium product released by StudioPress/ Copyblogger Media LLC (via studiopress.com). Credit where credit is due: The first plugin version was based on the work of Ramoonus and his plugin. Translations: Internationalization (i18n) / Localization (L10n)
genesis-printstyle-plus.pot
) for translators is also always included :)genesis-printstyle-plus
folder to the /wp-content/plugins/
directoryThat is really easy now, since plugin version 1.5+! There are two alternatives of doing that:
(1) Add a print stylesheet file print-additions.css
to your active child theme's root folder and you're done. It will be automatically enqueued after the packaged plugin styles so you are able to override them.
(2) To not use the packaged plugin stylesheet at all just add your full own custom print stylesheet gpsp-print.css
to your active child theme's root folder and you're done. This will be properly enqueued then and NOT the plugin file.
Both ways are really easy and update-secure. Enjoy!
Same two alternatives as explained above. Edit the "font-family" setting for the body tag and you're good to go.
In short: We believe that this is the recommended way of doing such things. ...some more thoughts: In most cases this will work across different browsers and operating systems with most current printers. So I really see no reason here of not doing it that way. -- Please note that I CANNOT test all browsers, OS, printers etc. that are out there. Still, you might report any issues you might have on your system configuration and together we will see what could be done/solved. Ok with that?
This seems to be true, regarding the HUGE number of Genesis Child Themes out there yet! However, I'll do my best to support as much stuff out of the box as possible but cannot be specific for all child themes on the market... You just have to tweak some existing CSS rules or add a new one for printing. Please see the questions above how you could replace, add/tweak print CSS rules. Yes, it's really easy so just try it :-).
Good question but unfortunately this is not possible and not recommended. I've built in a theme check function so it's only useable with the Genesis Framework and its child themes. The reason for that is simple because the print stylesheet references a lot of unique Genesis CSS IDs and classes so it will be nearly unuseable with other themes. However, you might have a look at the included print stylesheet and maybe got inspired for your own print stylesheet for your custom theme or even doing your own plugin with this...
.sharedaddy
(Jetpack sharing module) and .post-edit-link
classes to the print stylesheets to not display on print..backstretch
class to the print stylesheet to not display those background images on print. This comes in handy for child themes like "Metro" or "Sixteen Nine Pro" that use Backstretch by default.print.min.css
and the development version of that is print.css
. Also, if you are an Administrator and have WP_DEBUG
on, the development version gets loaded. Cool, hehe :)print.min.css
) for improved performance (the development file has now the file name print.css
and is still packaged).gpsp-print.css
is found in your active child theme's root folder, this will be your print stylesheet - if it's not there, the packaged plugin print stylesheet is being used! This is really handy, if you need to enqueue your own stylesheet and nothing else (i.e. for Multisite purposes...). All update-secure and really easy to handle!print-additions.css
is found in your active child theme's root folder it will be added after the plugin's default. This way you can add some more rules or override existing selectors/rules. Again, all update-secure and really easy to handle!genesis-printstyle-plus.pot
in /languages/
)