Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Problems printing with Chrome and Firefox (http://forum.bytesforall.com/showthread.php?t=15378)

HelgeLarsen Sep 13, 2011 01:39 PM

Problems printing with Chrome and Firefox
 
Running Atahualpa 3.6.7 with all 5 patches installed and WordPress 3.2.1
URL: http://clippingin.dk/ and http://makoni.dk

The problem is with both Chrome and Firefox browsers:
When printing any page from my sites only the left-sidebar is printed + a lot of blank pages with Firefox (109 blank pages with homepage of http://makoni.dk).

Disabling all plugins makes no difference.

Using Internet Explorer seems to work.

Regards
HelgeLarsen

HelgeLarsen Sep 26, 2011 07:39 AM

Am I the only one to see this problem?

/HelgeLarsen

juggledad Sep 26, 2011 08:50 AM

How are you doing the printing? using the browser print function? a screen print? a plugin?

HelgeLarsen Sep 26, 2011 01:16 PM

Standard browser print, nothing fancy. Just Ctrl+P.
This is the preview screen in Chrome browser og the frontpage of http://makoni.dk:
http://makoni.dk/Public/PrintPreviewMakoniSmall.jpg
Click on image to see full size.

At the moment the site http://clippingin.dk is a mostly closed site, but there I maybe found a little clue: The center part of the page (where post and pages are displayed) seems to be printed to the right of the page (outside the paper). On the page in question I see the leftmost pixels of the page content as the rightmost pixels right before the right printmargin.

The dotted line to the right (just before the right margin) on the screendump, is the dotted line between left sidebar and the pagearea from the Atahualpa theme.

/HelgeLarsen

juggledad Sep 26, 2011 02:35 PM

try using wp-print

HelgeLarsen Sep 26, 2011 03:39 PM

Tried installing plugin wp-print on both domains, but it makes no difference.

/HelgeLarsen

HelgeLarsen Sep 26, 2011 04:03 PM

I have now been looking at some pages html code (view source), and it seems the "@media print" style section is not terminated correctly (missing } at the end). At least as I understand this page: http://www.w3.org/TR/CSS2/media.html.

The styles in this "@media print" section disables all the sidebars, but none of them seems to work, maybe because of the missing } at the end.

/HelgeLarsen

juggledad Sep 26, 2011 06:28 PM

try this, edit css.php and find the following (lines 2072-2078)
HTML Code:

        td#left, td#right, td#left-inner, td#right-inner {
                width: 0;
                }

        td#middle {
                width: 100%;
                }

and change it to
HTML Code:

        td#left, td#right, td#left-inner, td#right-inner {
                width: 0;
                display: none;
                }

        td#middle {
                width: 100% !important;
                display: block;
                }


HelgeLarsen Sep 26, 2011 11:51 PM

That did the trick, except for one small annoying detail: when I get back from print, the page needs a refresh to show the content again. Just like the print preview before.

This last small error is only visible i Chrome browser, but works fine in Firefox.

/HelgeLarsen

juggledad Sep 27, 2011 04:25 AM

don't you just love how all browsers work the same. I get the same issue in Safari, but not in firefox on a mac.

In Safari, I get a image of the screen print, but in firefox I just get a print dialogue.

Is the refresh problem happening on both Chrome and FireFox?
What OS are you using?

HelgeLarsen Sep 27, 2011 07:48 AM

Quote:

Originally Posted by juggledad (Post 72927)
Is the refresh problem happening on both Chrome and FireFox?
What OS are you using?

The refresh problem is only in Chrome.
OS is Windows XP.

/HelgeLarsen

juggledad Sep 27, 2011 08:46 AM

Don't know if there is any solution too that :(

jimpee Oct 15, 2011 01:12 AM

I had the same trouble, thanks for this trick
I confirme it's still Ok with FF but with Chrome, all the text goes to the right column and the middle one is blank


All times are GMT -6. The time now is 05:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.