Jump to content

remove header & footer for specific page


Recommended Posts

Hi

I am working on this theme/template for our hosting site, and I came across a little hurdle, first being smarty its self as not only I was new to php and doing myself a fun project this was kind of something that spoiled my mood a bit anyway not here to rant about that. I want to know how can I disable or something so that they don't load for current pages generally the error pages such `error/page_not_found.tpl`, `error/internal_error.tpl` and `error/unknown-routepath.tpl` for example something like 

if (!is_page_not_found()) {
    include 'header.php';
}


I wanna know what needs to be done to achieve something like..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated