Results 1 to 3 of 3

Thread: Insert CSS file on site

  1. #1
    Join Date
    Oct 2006
    Posts
    45

    Question Insert CSS file on site

    I want to draft my product descriptions outside the storefront in Dreamweaver, and then copy & paste the code into each product description area. To speed formatting and because Dreamweaver now requires .css (not wanting to start a discussion about that here), I want to use CSS, and refer to a single .css file that I've created to format the product descriptions.

    Where do I place that .css file in the store, and how do I change product description code so each will link to the .css, and without having to deal with http/https issues?

  2. #2
    Join Date
    Apr 2009
    Posts
    146

    Default

    If I am understanding you correctly this is very simple. You can just load your external style sheet from inside your skin template (the same exact way the template loads the default style sheet)

    Code:
    <link rel="stylesheet" type="text/css" href="skins/skin_1/style.css" />
    <link rel="stylesheet" type="text/css" href="skins/skin_1/YOURSTYLESHEET.css" />
    The top style sheet loads site wide template styles. The YOURSTYLESHEET.css loads styles for your descriptions. Keep in mind that if you use a different template for your products than you do for your home template, you'll need to link to that style sheet in your product template.
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  3. #3
    Join Date
    Oct 2006
    Posts
    45

    Default

    Awesome. Just the answer I'm looking for. Many thanks.

    Quote Originally Posted by donttryathome View Post
    If I am understanding you correctly this is very simple. You can just load your external style sheet from inside your skin template (the same exact way the template loads the default style sheet)

    Code:
    <link rel="stylesheet" type="text/css" href="skins/skin_1/style.css" />
    <link rel="stylesheet" type="text/css" href="skins/skin_1/YOURSTYLESHEET.css" />
    The top style sheet loads site wide template styles. The YOURSTYLESHEET.css loads styles for your descriptions. Keep in mind that if you use a different template for your products than you do for your home template, you'll need to link to that style sheet in your product template.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •