[closed] Can i stop header from loading on single.php (2 posts)

  1. Missouriflies
    Posted 3 years ago #

    I'd really like there to be no header on single product pages. Im using wp e-commerce and i assume the header is still controlled by single.php, or page.php. is there a way to stop the header from loading on all single post pages. if e-commerce is using page post then i think i will be lost, so im hoping there is some quick, easy solution like

    get_header(display:none); ?>

    or an empty file? (not sure what that code would look like)

    [duplicate: http://wordpress.org/support/topic/removing-header-from-single-product-pages-wp-ecommerce?replies=1 - closed]

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    you could try and call a different header file in single.php;


    <?php get_header('single'); ?>


    and create a header-single.php file with all the neccessary declarations etc, and the essential html tags, but without any output.

Topic Closed

This topic has been closed to new replies.

About this Topic