Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2006
    Location
    Delaware Valley PA
    Posts
    3
    Plugin Contributions
    0

    Default Need the Zen-ese to call stylesheet through Conditional Comment

    I'm used to having a separate "hack sheet" for all my IE6 and less styles, called through a conditional comment in the html head like so:

    Code:
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="ie6style.css" type="text/css" media="screen" />
    <![endif]-->
    Is there a Zen-ese way to "path" this in the head of my theme's html_header.php so that it is transportable with the theme and will always work??

    Thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Need the Zen-ese to call stylesheet through Conditional Comment

    Coding for Doctype to closing Head tag is found here:
    includes/templates/*/common/html_header.php

    Whatever you include should apply to all pages.

    Mind you, you might have to do some funky coding or use an absolute path, in order to use the IE CSS file within your 'template' dir.

  3. #3
    Join Date
    Dec 2006
    Location
    Delaware Valley PA
    Posts
    3
    Plugin Contributions
    0

    Default Re: Need the Zen-ese to call stylesheet through Conditional Comment

    Mind you, you might have to do some funky coding or use an absolute path, in order to use the IE CSS file within your 'template' dir.
    Website Rob, thank you for responding. I guess I didn't phrase my question clearly enough since you repeated it. :)

    Could someone please tell me what that "funky coding" might be??

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,749
    Plugin Contributions
    0

    Default Re: Need the Zen-ese to call stylesheet through Conditional Comment

    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Need the Zen-ese to call stylesheet through Conditional Comment

    Another related topic FYI.
    Adding IE conditional stylesheet

    .
    A New Starter again

  6. #6
    Join Date
    Dec 2006
    Location
    Delaware Valley PA
    Posts
    3
    Plugin Contributions
    0

    Default Re: Need the Zen-ese to call stylesheet through Conditional Comment

    YES! Thank you, that works.

 

 

Similar Threads

  1. Need help with stylesheet - Need to delete the categories
    By annav in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Jun 2009, 12:41 PM
  2. Adding IE conditional stylesheet
    By oceano in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jun 2007, 07:36 PM
  3. HowTo include an IE Conditional Comments stylesheet
    By joelfarris in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Jun 2007, 02:33 AM
  4. conditional stylesheet
    By tomzo in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 25 Mar 2007, 08:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR