Tagged: print version
-
AuthorPosts
-
February 14, 2019 at 11:03 pm #1067210
Dear Enfold Team,
i searched the forum for a solution and tried things but did not succeed. Is there a CSS Code to optimize the print version for a full screen layout? We would like to reduce the print version to a minimim:
1. Just text – no images
2. No whitespace – no unnecessary breaksThanks for your support!
February 19, 2019 at 5:08 am #1068755Hey UPON,
Thank you for using Enfold.
You can put all your custom print styles inside a print css media query.
// https://joshuawinn.com/css-print-media-query/
Example:
@media print { /* All your print styles go here */ img { display: none !important; } }
That removes every image in the print version.
Best regards,
IsmaelFebruary 25, 2019 at 12:20 pm #1071254Hello Ismael,
thanks for your reply. The print version looks bad. When i take your code to hide all images the result is that no text appears and 5 pages are white without anything.
Please take a look at the website.Thanks
February 27, 2019 at 12:49 am #1072086Hi,
Thank you for using Enfold.
Where did you add the code? Please copy it directly from the forum, not from your email.
Best regards,
IsmaelMarch 1, 2019 at 6:42 am #1072911Hello Ismael,
thanks for your reply. I add the code in the child theme (from forum) in a print.css with the function code to address:
add_theme_support(‘avia_template_builder_custom_css’);
function change_aviacss() {
wp_dequeue_style( ‘avia-print’ );
wp_enqueue_style( ‘avia-print-child’, get_stylesheet_directory_uri().’/print.css’, array(), ‘1’, ‘print’ );
}
add_action( ‘wp_enqueue_scripts’, ‘change_aviacss’, 100 );Best regards
March 2, 2019 at 4:45 am #1073492Hi,
Thanks for the update.
You don’t need to create a new file for that. Just add the print css media query in the child theme’s style.css file or the Quick CSS field.
Best regards,
IsmaelMarch 10, 2019 at 6:27 am #1076895Hello Ismael,
thanks for the update but it makes no difference. Still not all the text is displayed or just parts. It doesnt look nice at all. See frontpage and the main menu pages. Please try to give us a solution.
Best regardsMarch 11, 2019 at 12:25 pm #1077295Hi,
Thanks for the update.
The text are displaying properly in the print preview. Which area is not visible in your end? Please provide a screenshot using imgur or dropbox.
Best regards,
IsmaelMarch 19, 2019 at 7:27 am #1080232This reply has been marked as private.March 20, 2019 at 5:03 pm #1080919Hi,
Thanks for the update.
Where are you testing this? This is what we get from Opera, Windows 7.
Screenshot: https://imgur.com/a/Iyo0Wg0
Best regards,
IsmaelMarch 27, 2019 at 8:08 am #1083470Hello Ismael,
thanks for your reply. I teste with Firefox and Edge, Windows 10. After page 2 there is just whitespace.
Best regardsMarch 29, 2019 at 12:15 am #1084335 -
AuthorPosts
- You must be logged in to reply to this topic.