How to remove the header/footer on just one page (used for a popup)

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
5/8/2012 11:54:17 AM
Gravatar
Total Posts 37

How to remove the header/footer on just one page (used for a popup)

Hey Guys,

I've created a page and placed a form wizard pro form on the page.  I added a yes/no question and I want this question to popup on the homepage after 5 seconds.  I will then be able to keep track of the yes/no clicked answers in the form results.  However, I don't want the popup to have the header or footer.  I just simply want the question to show up in the popup.  I'm using this code on the page to allow the popup to start:

<script language="javascript"> timer=setTimeout("window.open('television-commercial-survey.aspx','','width=300,height=200')",5000) </script>

What do I need to do with the CSS in order to disable the header and footer on the page used for the popup?  I appreciate the help!  Thanks

 

5/8/2012 1:06:49 PM
Gravatar
Total Posts 18439

Re: How to remove the header/footer on just one page (used for a popup)

Hi,

The best suggestion I can come up with is copy the printerfriendly skin and rename it, then remove things like site heading and footer stuff from the layout.master of the copied skin and then set that as the skin for the page that has Form Wizard on it. If you haven't already you'll need to enable page level skins from site settings in order to be able to assign a specific skin to the page.

Be careful not to remove anything that is required from the layout.master file, if you remove something required it will cause an error to be logged and it will fallback to a failsafe master page. You should be able to remove things like the site heading, footer topnav links, and menus but you cannot remove things like divLeft, divRight, divCenter, contentpalceholders, StyleSheetCombiner, ScriptLoader

You'll probably also want to set that page as not included in the menu and site map from page settings so users don't find it outside your popup since it won't look like other pages in the site.

Hope that helps,

Joe

5/9/2012 9:49:29 AM
Gravatar
Total Posts 37

Re: How to remove the header/footer on just one page (used for a popup)

Thanks Joe, 

I hadn't even thought of that!  I was able to copy the printerfriendly skin and modify it to work with my popup.  Everything is now running smooth now!  Thanks again for your help!

Tyler

You must sign in to post in the forums. This thread is closed to new posts.