osclover Posted March 20, 2006 Posted March 20, 2006 My site is using the fixed width contribution. I want the outer border to be displayed on the main page (index.php page) only. I don't want it on the other pages. What should i do ?
♥toyicebear Posted March 20, 2006 Posted March 20, 2006 My site is using the fixed width contribution. I want the outer border to be displayed on the main page (index.php page) only. I don't want it on the other pages. What should i do ? Easy have 2 stylesheets.... 1 for the index and 1 for the rest of the site.... Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
osclover Posted March 21, 2006 Author Posted March 21, 2006 Sound nice but can you please tell me in detail as to how to have 2 style sheets. How would I 'connect' the two stylesheets with the different pages?
♥toyicebear Posted March 21, 2006 Posted March 21, 2006 Sound nice but can you please tell me in detail as to how to have 2 style sheets. How would I 'connect' the two stylesheets with the different pages? In about every .php file in your main shop folder there is a reference to which stylesheet to use.. it looks like this.... <link rel="stylesheet" type="text/css" href="stylesheet.css"> if you want one file to use a different stylesheet than the rest... 1. make a new stylesheet with a new name , like for instance: stylesheet2.css 2. then you change the stylesheet ref in the file you want to use this new stylesheet, like so: <link rel="stylesheet" type="text/css" href="stylesheet2.css"> Thats it..... Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
osclover Posted March 22, 2006 Author Posted March 22, 2006 Ok I had figured it out. But my problem is different. As you know the one single php file index.php file displays various different pages. Examples: http://127.0.0.1/2006/feb/woc/woc1/index.php [shows the main page] http://localhost/2006/feb/woc/woc1/index.p...3c44213df8956c4 [shows one category] http://localhost/2006/feb/woc/woc1/index.p...3c44213df8956c4 [shows a subcategory page of that category which was selected above] Now my problem is that all these pages coding is in the SAME index php file and all are linked to the SAME stylesheet. How can I link the first url (http://localhost/2006/feb/mwb/mwb1/index.php) to a different stylesheet say stylesheet2.css?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.