Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Theme's Print Function


  #1  
Old Jul 13, 2009, 10:26 PM
abroadinspain
 
4 posts · Jul 2009
I have a "print this post" link below my byline on each post and am using the standard print function included in the theme (I set it up in the kicker/byline/footer section of the theme's options).

The problem is that every time I print a post, the text comes out of the printer in a one-inch strip along the left hand side of the paper; in other words, the text does not fill the paper.

Does anyone know why I'm getting this weird behavior when I click the print this post link? Shouldn't the link format the text correctly and send it to my printer so that it fits nicely on the page and not in a one-inch strip along the side of the page?

You can see what I'm talking about by visiting my blog at http://abroadinspain.com and trying to print any post using the print function below the byline.

Thanks in advance for your help!
  #2  
Old Jul 14, 2009, 02:49 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could use the %wp-print and the wp-print plugin. see the description at ATO-Post/Page Info Items

The page is a big table and it looks like the print code you are using is defaulting to the width of the left column
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jul 15, 2009 at 02:17 PM.
  #3  
Old Jul 15, 2009, 02:14 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
This is corrected in newer versions. In you 3.2 replace the PRINT section in style.css with this:

HTML Code:
/* ------------------------------------------------------------------
---------- PRINT STYLE ----------------------------------------------
------------------------------------------------------------------ */

@media print {

    body { 
        background: white; 
        color: black; 
        margin: 0; 
        font-size: 10pt !important; 
        font-family: arial, sans-serif; 
        }

    div.post-footer {
        line-height: normal !important;
        color: #555 !important;
        font-size: 9pt !important;
        }

    a:link, 
    a:visited, 
    a:active,
    a:hover {
        text-decoration: underline !important; 
        color: #000;
        }
        
    h2 {
        color: #000; 
        font-size: 14pt !important; 
        font-weight: normal !important;
        }
        
    h3 {
        color: #000; 
        font-size: 12pt !important; 
        }
        
    #header, 
    #footer, 
    .colone, 
    .colthree,
    .navigation, 
    .navigation-top,
    .navigation-middle,
    .navigation-bottom,
    .wp-pagenavi-navigation, 
    #comment, 
    #respond,
    .remove-for-print {
        display: none;
        }

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

    td#middle {
        width: 100%;
        }

    /* 4 hacks for display:none for td#left and td#right for all all browsers except IE. */

    *:lang(en) td#left{
        display: none;
        }
        
    *:lang(en) td#right{
        display: none;
        }

    td#left:empty {
        display: none;
        }

    td#right:empty {
        display: none;
        }

}    
  #4  
Old Jul 16, 2009, 03:45 PM
abroadinspain
 
4 posts · Jul 2009
Thank's Flynn! That code did the trick!

Thanks again!

Bookmarks

Tags
function, print

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error in excerpt function? If cut-off point is <em> jankph Excerpts, Read more, Pagination 4 Jul 16, 2009 01:41 PM
[SOLVED] HELP! I tried to add something to my function.php page mgofootball Header configuration & styling 1 Jun 25, 2009 12:35 PM
How to add support for WP-Print, to print pages/posts? AndrewRH Atahualpa 3 Wordpress theme 1 Jun 2, 2009 04:13 PM
Fatal error: Call to undefined function is_front_page() kyuen New Versions, & Updating 4 Mar 1, 2009 06:19 PM
[SOLVED] 404 error with wp-print and wp-email Alexi Plugins & Atahualpa 8 Dec 28, 2008 12:38 AM


All times are GMT -6. The time now is 06:45 AM.


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