![]() |
Changing static pages
is it possible to have static pages load into say the welcome.tpl instead of the dialog.tpl. Or is there another way to present a page that will display 100% of the browser width. Thanks.
|
Re: Changing static pages
The static page width should default to the width set for your site.
|
Re: Changing static pages
it does in FF2.0 but not in IE7. I did test and just put this code in:
Quote:
And it still only displayed at approx 75%. I also notice this at login. at the home.php in both FF & IE7 it is 100%. when you login is seems to narrow both sides of the page so it shows smaller and not 100%. |
Re: Changing static pages
Are we talking embedded static pages or not?
|
Re: Changing static pages
yes. embedded not root.
|
Re: Changing static pages
Remember you can't have html, head, title or body tags in an embedded static page, as those are pulled from customer/home.tpl. The embedded page should just have the html code itself.
|
Re: Changing static pages
thanks balinor. what i cannot understand though, is how you are supposed to get a uniform site. do you have to design html pages for each link/section and call them via hyperlink?
|
Re: Changing static pages
Not sure I follow...if you use an embedded static page it simply fits into the site structure, which the header, side menus and footer wrapping around the content of the static page. You shouldn't have different widthis or looks at all, it should look the same as your category, product and home pages.
|
Re: Changing static pages
if you give me 5 mins balinor, then i shall set some example at site so you can see. Thanks. peter
|
Re: Changing static pages
Balinor. i have just dropped a table & menu etc on page. There is a link states: press here. if you click that link will take you to another hurried page. you will see what i am reffering too in IE7 & FF. The url: http://opa.uk.com remember this is work in progress as i only got x-cart friday. Thank you.
|
Re: Changing static pages
View the source of that page...you'll see you have two <title> tags, two <body> tags, etc. Not sure where you have added that extra code, but you'll want to fix that first to see if that is the issue.
|
Re: Changing static pages
here is the source for the welcome.tpl:
Quote:
there is no body or title tag. here is the code for the head.tpl Quote:
The body tag has to be there to display the disclaimer popup. and the code for the home.tpl |
Re: Changing static pages
part 2 coding to overcome 10000 character limit:
Home.tpl Quote:
Hope this helps. peter |
Re: Changing static pages
Yes, there is your problem. You have a <head> tag and a <body> tag in head.tpl. Those should only be on customer/home.tpl.
|
Re: Changing static pages
removed those balinor, but still the same. totally different in IE7 & FF. At the simplest level. what is the correct way to set up your pages in x-cart so your site is uniform in all browsers. Thanks. peter
|
Re: Changing static pages
You need to fix the errors in your code and make the site W3C compliant. Right now you have 14 critical errors and 53 warnings. Start by fixing those and you'll stand a better chance of getting the site to display uniformly. By default, X-Cart is compliant...but the custom code you have added is really messing things up.
|
Re: Changing static pages
will re-install and start again. thanks very much for help.
|
Re: Changing static pages
Just remember that anything that is supposed to go in the <head> tag needs to be added to customer/home.tpl, not head.tpl. Run your code through a validator to make sure you are following the standards, and use css as much as you can (as opposed to tables). Keep your JavaScript called externally instead of adding it to the templates. Good luck!
|
Re: Changing static pages
cheers balinor.
|
Re: Changing static pages
Balinor. just follow on from yesterday. re-installed cart. still getting 33 validation errors with clean install.from w3. only using home.tpl for headtags etc. am i correct in assuming that any javascript that uses the head tag needs to be placed in the home.tpl? how does this relate onload commands etc where a body is needed? i have also placed all javascript in external js files, but cannot get them to display. code is fine if i run it direct from page, but not as external js file. Any ideas? Thanks. Peter
|
All times are GMT -8. The time now is 10:04 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.