Hello,
I am using shadowbox to create a popup and i like to know how i to display just a page content in a popup??
- should i create a seperate "no-header no-footer just plain" page template? But i also want to be able to show the page content with the theme design.
Any tips?
regards,
ok i made a simple workaroung by adding this to page.php
<?php if($_GET['popup']==1):?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/assets/css/goodontmoet.css" type="text/css" media="screen" />
<div id="popup">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!--content-->
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php else: ?>
and i added '&popup=1' to the appropiate links