WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using WP 3.1.2 and latest e-commerce plugin. Now I'm stuck at creating simple page for printing product info. It has to be only product information with not WordPress header and footer. The pop up window appears nicely but now I need to check against something in header and footer files to when not to display them.

I can't check by post id cause then I need to edit it every time new product is added. And I can't add GET parameter to URL cause then WP e-commerce plugin doesn't show product, instead it displays products page.

How can I possibly do this?

share|improve this question

closed as off-topic by Pieter Goosen, Mark Kaplun, birgire, gmazzap, Bainternet Dec 12 '14 at 10:13

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

You can handle this much more simply with CSS and a print stylesheet. Just add display:none within that stylesheet for all elements you don't want visible in the print version.

share|improve this answer