| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to add another CSS file? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to integrate some Spry widgets from Dreamweaver. I've copied the javascript files into a new folder in skin1 and updated the links. There is also a CSS file in the spry folder. Should I cut and paste this into the skin1.css or somehow call this new CSS from the template that uses the widget?
If I should put it in the skin1.css, then where? If I should call it, how? Thanks.
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You can just copy the contents of the new css file into skin1.css. It doesn't matter where in the file - you can put it at the end
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() I added my styles sheet for our Spry menu bar directly in X-Cart as
<link href="/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> The main reason I wanted to keep this separate is because this is primarily for the website and not specific to X-Cart. This Spry styles sheet was already on our host server in a separate folder for the website, so it was just a matter of getting to the correct folder. Also, I figured it would be an easier fix when we decide to change our menu bar. Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#4
|
|||||||
|
|||||||
![]() Thank you ChristineP. Can I ask where you inserted the link to the spry.css file? Was it directly in the template you have your menubar in or was it somewhere more general that always loads it?
BTW I am also trying to get the SpryMenuBarHorizontal working within xcart. May I ask how you called the SpryMenuBar.js from you template? I cut & pasted the css file into skin1.css and have it looking like it should, but the automatic dropdown part is not working. The hover colors change on the bar correctly, but no dropdowns or little gif arrows. Any help is greatly appreciated. Thanks again.
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
|
#5
|
|||||||
|
|||||||
![]() Because we sell wholesale to only dealers, our cart functionality is different than most. I placed both my styles sheet and SpryMenuBar.js in customer/home.tpl. We are also using Fast Lane Checkout, and so, I needed to place the same styles sheet and .js in /modules/Fast_Lane_Checkout/home.tpl. Check to make sure you're calling out the correct folder for your .js. Also, with the images, are the these called out from your styles sheet? You'll need to make sure the code is calling the correct folder within your styles sheet.
Christine
__________________
______________ version 4.1.9 Gold |
|||||||
#6
|
|||||||
|
|||||||
![]() Now I have a CSS question. My flyouts are working correctly on my local test server, but I cannot get the look I want. I would like the top most menu to have no background color, ie transparent and all the flyouts to have a background color. I think I need to add another class or something in order to do this, but my CSS skills are pretty remedial. I have tried to add an additional "ul.MenuBarHorizontal a" that is renamed and change the background color without luck. I've also tried to duplicate the CSS file and use 2 different settings on the different parts but that's not it either. I can only get all or nothing. Is it a descendent style that's killing me? Thanks for any help.
CSS File: Code:
html code: Code:
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
|
|||
X-Cart forums © 2001-2020
|