Well you *could* create a template file to display each (maybe single-vis.php), and have a different header called instead of the normal header.php file, and in that custom header (“header-vis.php” maybe?) have a different stylesheet that is a stripped down version, only styles you need. And maybe leave out the <header> part that calls your menu, logo, etc.
Do the same thing with the footer if you need to remove your current Theme’s normal footer stuff…..
BUT you’d want to be sure to include somewhere a link back to your (normal) site maybe?
Then in your site, you can have a thumbnail image that links to the content that uses single-vis.php instead of the normal single.php.
You could do that either by having your data visualizations as a Custom Post Type OR in a unique category, if you go the latter route just replace your single.php with something like:
if ( have_posts() ) { the_post(); rewind_posts(); }
if ( in_category('36') ) { // whatever is the 'real' category
include(TEMPLATEPATH . '/single-vis.php');
} else {
include(TEMPLATEPATH . '/single-normal.php');
}
Copy your single.php to single-normal.php first of course! 🙂
Then WP will use your new Template file (single-vis.php) which calls your new header file (header-vis.php) and if needed a new footer file (footer-vis.php) as it builds each page dynamically.
Good luck!
Hi TrishaM, thank you for your reply.
Each visualization I have is made of at least 1 HTML, 1 Javascript and 1 data (csv, json…) file. I sometimes have separate CSS too.
So basically each “single-vis” should serve the HTML file with all the associated js, css, json etc.
How would you go about doing this with what you propose ?