BV Commerce Forum
»
BV Commerce Support
»
General Support
»
How to make Closed.aspx look like the rest of the Theme
Rank: Member
Joined: 3/4/2006(UTC) Posts: 121
|
The Closed.aspx page comes up just as a gray background with text. I'd like it to look like the rest of the theme that I'm using with just "Store is closed for maintenance." How do I accomplish this?
Rick
|
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hi Rick,
I have an "un-official" solution for you. First, browse to the root folder of your current theme (If your site is hosted on a local machine, it should be something like C:\inetpub\wwwroot\mystore\BVModules\Themes\Painted_Paper\). Copy your Closed.Master file and save it as Closed.Old. Delete your Closed.Master file. Copy your Home.Master file and save it as Closed.Master. Open this file and change the following line:
<link href="styles/styles.css" rel="stylesheet" type="text/css" />
Change "styles.css" to "closed.css"
<link href="styles/closed.css" rel="stylesheet" type="text/css" />
Save the file and close. Navigate to the themes "Styles" directory and copy the styles.css file. Save the file as "closed.css".
You can now edit this CSS file to make any changes to your stores closed page.
I recommend the following:
#header ul, #footer ul {display:none}
and
#minicart { display:none }
I recommend this because you do not want your customers to have access to these links. If they attempt to navigate with the store closed they will receive errors. This solution is not recommended for all sites because it depends on CSS to hide elements. If the users browser does not support CSS, this method will fail.
Thanks and good luck! Everett |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 3/4/2006(UTC) Posts: 121
|
Everett, I tried your solution and didn't get anywhere. The standard home page came up regardless. Any other suggestions? Could a custom Closed Page be created and added and then a URL Redirect from the 'standard' closed page to the New closed page?
Rick
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
I'd recommend editing Closed.master to contain the majority of the HTML you want to structure your closed page with, and don't mess with the store elements. When your site is closed, you don't want the header, footer, or other store-related controls on the Closed page, because it's likely you're working on the store or theme. Hiding them with CSS isn't enough.
The bottom line is that you want to minimize the possibilities of your closed page throwing up errors because you're working on updating your site.
If you do copy Home.master to Closed.master, make sure the "CodeFile" is "Closed.master.vb" and the "Inherits" is set to your Closed class (top of the master pages). |
|
|
|
|
Rank: Member
Joined: 7/15/2004(UTC) Posts: 368
|
Just a thought... but if you want it to look like the rest of your site but not use the BV elements "View Source" from the home page and use the html that is generated to build the static page. Get rid of Search and Mailing List boxes, take out the navigation and the content out, take out any links. Doing this you have your html shell that you can copy and paste into the right places in the Closed.master.
Of course, you should make a copy of the Closed.master before attempting any of the copying and pasting. hth |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.