osCmax v2.5 User Manual
Results 1 to 5 of 5

background colour

This is a discussion on background colour within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; How and where do i change the background colour and text from the default 'white/black' Quite new to coding so ...

      
  1. #1
    New Member
    Join Date
    Jun 2009
    Posts
    5
    Rep Power
    0


    Default background colour

    How and where do i change the background colour and text from the default 'white/black'

    Quite new to coding so please tell me which file and the 'text' in that file that needs editing.

    Thanks

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: background colour

    Depending on which template you are using ...

    Look in catalog/templates/ <your template name> /stylesheet.css

    If you open this file and look for the following:

    Code:
    
    BODY {
    background: #ffffff;
    color: #000000;
    margin: 0px;
    }
    
    Just change the hex references above to what you need.

    If you look through the rest of this file you will see that you change most of the layout, style and colours in this file.

    Hope this helps,
    pgmarshall
    _______________________________

  3. #3
    New Member
    Join Date
    Dec 2007
    Posts
    10
    Rep Power
    0


    Default Re: background colour

    what about if only want to changed the side color only not inside the display, could you tell where to changed?

    thanks

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: background colour

    ming,

    The best thing to do is to download Firefox and an addin called Firebug - this will allow you to "inspect" different bits of your homepage and display at the bottom which classes within the stylesheet you need to change.

    Just be aware that some of the classes are used in more than one place!

    More specifically for your question you will need to add a style to the left column - look in mainpage.tpl.php for

    Code:
    <table border="0" width="100%" cellspacing="3" cellpadding="3">
    <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    <?php
    // Hide Left Column if not to show
    if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_LEFT_OFF =='false') {
    ?>
    <!-- left_navigation //-->
    <?php require(bts_select('column', 'column_left.php')); // BTSv1.5 ?>
    <!-- left_navigation_eof //-->
    <?php
    }
    ?>
    </table></td>
    <!-- content //-->
    <td width="100%" valign="top"><?php
    require (bts_select ('content')); // BTSv1.5
    ?></td>
    <!-- content_eof //-->
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    <?php
    // Hide column_left.php if not to show
    if (DOWN_FOR_MAINTENANCE == 'false' or DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF =='false') {
    ?> 
    <!-- right_navigation //-->
    <?php require(bts_select('column', 'column_right.php')); // BTSv1.5 ?>
    <!-- right_navigation_eof //-->
    <?php
    }
    ?> 
    </table>
    This is the table which produces the basic layout for all pages - you can see the left and right columns

    Code:
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
    and the main centre box

    Code:
    <td width="100%" valign="top"><?php
    require (bts_select ('content')); // BTSv1.5
    ?></td>
    You can add a style to each of these if you wanted to colour the cells differently.

    Hope this helps.

    Regards,
    pgmarshall
    _______________________________

  5. #5
    New Member
    Join Date
    Dec 2007
    Posts
    10
    Rep Power
    0


    Default Re: background colour

    thanks, i will try that

Similar Threads

  1. Changing search box background colour
    By PerfectEye in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-06-2005, 08:47 AM
  2. Where to get colour code
    By tyz6970 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 08-02-2004, 08:46 AM
  3. pop up image background colour change
    By starchild in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 10-01-2003, 05:13 AM
  4. Background colour in columns only
    By adder667 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 04-14-2003, 01:02 AM
  5. Box border colour
    By Bah in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 12-31-2002, 07:32 AM

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
  •