This is my first post here so I hope you are willing to help me. :).
For a customer i'm trying to create a custom template for a single Wordpress-page. The customer desires a single page with only the footer visible. I already found out how to hide the right sidebar and the menu and header, but the problem is that the stylesheet also disappears when i hide the header. Do you guys know how to fix this?
Thanks in advance!
Here's the code I used: <?php /* Template Name: No Sidebar and No Header */ ?> <?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */
//get_header(); ?> <div id="contentwrapper"> <div id="contentcontainer"> <div id="content"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php endwhile; // end of the loop. ?> </div>
I haven't done this per se but from the Docs it seems an option would be to create a new header file and strip out all of the stuff you don't want. Make the filename header-styles.php and then call it in your template like so: get_header( 'styles' );