palpal1964 Posted July 4, 2009 Posted July 4, 2009 Hello, I have an oscommerce website in two languages: hebrew and english. I want to change the CSS stylesheet only for one language, and I saw the CSS file is the same for both languages. Is there any solution for this? Thank you in advance
germ Posted July 4, 2009 Posted July 4, 2009 In the <head> section of all the pages change: <link rel="stylesheet" type="text/css" href="stylesheet.css"> To something like: <?php if ( $language == 'en' ) { ?> <link rel="stylesheet" type="text/css" href="english.css"> <?php } else { ?> <link rel="stylesheet" type="text/css" href="hebrew.css"> <?php } ?> Look in my signature about making backups... ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.