Normal Print Dialog Box Coming Up
-
Hi there,
I have a custom theme, with a few different templates. One specific template that I have will show the Print Friendly button when I place
[printfriendly]
in the page, but when I preview the page and click the PF button, it opens up the normal print dialog box (like you would see if you right-click the page and choose ‘print’), and not the Print Friendly dialog box that has the PDF and Email options available. If I change the page’s template, the button works just fine and the correct PF box opens up. The template is a simple, unstyled page that holds one div containing a swf file, which I need to give users the option to print.code:
<!--links--> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, print" /> <!--links end--> <?php /* Template Name: Color Picker Page */ ?> <div id="color-picker-wrapper"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class() ?>> <h1><?php wp_title("",false); ?></h1> <?php the_content(); ?> </div> <?php endwhile; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?> <?php endif; ?> </div>
I have also tried adding the php code directly to the template, and I get the same problem – the button functions, but opens the wrong print dialog box. Any ideas? Thanks!
- The topic ‘Normal Print Dialog Box Coming Up’ is closed to new replies.