+ Reply to Thread
Results 1 to 4 of 4

Thread: Background of Email Templates

  1. #1
    Client mNolan's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Squirrelcart version
    v3.3.6

    Background of Email Templates

    Hi
    My site background is a dark coloured gif with bright spots on it and is assigned to body_bg.gif of a mainstreet coloured theme. It now appears on all emails to me and the customer and is quite sore to the eye!

    I've tried to play with css but even if I set background:none to the contact css template, the email still had the site background.

    Does anyone have an idea as to how to override the body style in style_main_css.php which uses:

    background: url(<?php print sc_img('body_bg','dyn') ?>) repeat; ?

    thanks.

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Find the stylesheet inside the <head/> tag in your order_email_customer_html.tpl.php and order_email_merchant_html.tpl.php template files in your squirrelcart/themes/squirrelcart folder, and make them like this:
    PHP Code:
        <!--  workaround for Outlook 2007 :( -->
        <style type="text/css">
        body {
            background-image: url(<?php print SC_STORE_DIR ?>/squirrelcart/images/blank.gif);
            background-color: #fff;
        }
        
        h1 {
            font-size: 20px;
            font-weight: normal;
        }    
        
        ol {
            list-style-type: decimal;
            padding-left: 25px;
        }
        </style>

  3. #3
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    This change is in the upcoming next mid level release (v3.4.0).

  4. #4
    Client mNolan's Avatar
    Join Date
    Oct 2010
    Posts
    25
    Squirrelcart version
    v3.3.6

    thanks

    As always, thank you. I did try that but used background: none, which didn't work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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