Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 4 of 4

Thread: Changing page color

  1. #1
    ShawnAutoDMC
    Guest


    Default Changing page color

    Howdy. I'm running a site for a company, using osCMax.

    They have a catagory for "Pink" items. They would like for the page to have something "Pink" on it when browsing the Pink catagory or any of the Pink items.

    What I'm trying to figure out is how do I add an item/change a color of something on the page dependant on the catagory being viewed?

    I'm currently reading the template PHP code, but I must admit that I don't even know where to start looking.

    Thanks for anybody who can understand my problem and help!
    Shawn.

  2. #2
    nootkan
    Guest


    Default

    Not sure which template you are using, but I would start by looking at the stylesheet.css file in the template directory. Just start changing colours and see where it leads you. There are some good documents in the How to section of the OscDox Guide link on the left side of this forum also.

  3. #3
    ShawnAutoDMC
    Guest


    Default

    Mainly what I was looking for was the PHP code that decides what catagory is being shown, so I could switch the stylesheet if das customers go into "Pink", then switch back to normal when they go into "Mens Wear."

  4. #4
    jpf
    Guest


    Default

    It all done with CSS and has NOTHING to do with PHP as COLOR is NOT determined at any point with PHP...it is straight HTML and CSS Styles.... However you could cause PHP to CHANGE the style defined in the HTML....depending on the catagories..... This would require changing ALL the HTML and coding "IFs" in PHP... or maybe by APPENDING the catagory number/id.... then in CSS define "pink" theam just for the ladies and normal for all other.....

    TD.main, P.main {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    }


    TD.main.23, P.main23 {
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
    }

    (where 23 is the ID for LADIES catagory...)


    A SIMPLER solution (and I did this for another company - they wanted different colors on EACH catagory)

    Wrap all PICS with a BOADER color (I use a SCRIPT that created a "correct maximum size" main pic and a thumb nail and gave each a 10pixel wide solid color boarder)


    OR you could look a using a MULTI-STORE setup....

    Multiple "Mini-Stores" with 1 Admin
    http://www.oscommerce.com/community/contributions,1534

    Which allow you to offer same or diffent product on each site but each site can have totally diffent looks/feal..... Thus a Pink Girly Girl site at http://yoursite/ladies/index.php and then have a Macho Mens site at http://yoursite/mens/index.php and a default at http://yoursite/main/index.php all ADMIN would be worked in ONE admin site...https://yoursite/someadmindir/index.php


    Then put in each site a LINK to the "MEN WARE " or "Womens ware" button in the header....

    Good Luck!

Similar Threads

  1. changing colors; cant find colum color in stylesheet
    By Redeye_Joe in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 03-17-2006, 10:04 PM
  2. Changing Background color
    By tclhost in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 11-05-2005, 02:00 PM
  3. Changing Background Color of Header
    By knowgangs in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 07-12-2005, 11:32 AM
  4. Changing Product Info Font Color
    By JaaMor in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-11-2003, 06:46 PM
  5. Changing the color of the box headings
    By annea03 in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-03-2003, 12:06 PM

Bookmarks

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
  •