Adding header image to printed page
-
I created a print stylesheet, and it is mostly, but I wanted to have the header image appear on the printed page, and I thought that I had suppressed the sidebar from printing but I guess not. Can someone kindly tell me how to make these changes?
Thanks.Here is the stylesheet code:
/* Print Style Sheet */ @media print { body { background:white; color:black; margin:0 } } #header { height:75px; font-size: 24pt; color:black } #content { margin-left:0; float:none; width:auto; color:black; font-size:12pt } #comments {display:none } #sidebar { display:none } #content{ margin-left:0; float:none; width:auto } #footer { } h1, h2, h3, h4, h5, h6 { page-break-after:avoid; page-break-inside:avoid } img { page-break-inside:avoid; page-break-after:avoid; } blockquote, table, pre { page-break-inside:avoid } ul, ol, dl { page-break-before:avoid } } <?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> <?php the_content('(continue reading...)'); ?> <?php endwhile; ?> <?php else : ?> <a href="<?php the_permalink() ?>">Not Found</a> Sorry, but you are looking for something that isn't here. You can search again by using <a href="#searchform">this form</a>... <?php endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Adding header image to printed page’ is closed to new replies.