Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Hide header and footer on selected pages #35380
    gladavisj
    Member

    That is my question…
    What part of header.php do I put inside the conditional tags?
    I know that I need the values assigned but I can’t see which part of the php makes the call to display the header (which is the bit that I want to avoid)

    in reply to: Hide header and footer on selected pages #35339
    gladavisj
    Member

    Correction:
    I have checked the site and it is only the page with the custom template that does not show. All the other pages are ok.
    But if I remove get_header(); from the custom template then the content I

      do

    want to show is in a different format.
    And if I remove <?php get_footer(); ?> then the page is blank

    in reply to: Hide header and footer on selected pages #35307
    gladavisj
    Member

    Yes I have a child theme.
    The reason i need the conditional statement is because if my custom template page does not call

    get-header();

    then the site does not show any pages.
    I figured I needed to put in a conditional statement to make sure that all the header variables/settings are assigned but without actually showing the header.
    Sorry I can’t show give you a URL but I am working an offline version of WP with MAMP

Viewing 3 posts - 1 through 3 (of 3 total)