beachboy Posted June 7, 2003 Posted June 7, 2003 This is where I have the text for my front page. I'm able to change the size using <h3> but am unable to change the colors..I tried using <font color="red" but it doesn't wotk..How do I need to do it??
beachboy Posted June 7, 2003 Author Posted June 7, 2003 Here's how I'm trying it but when I go to my main page all the texr is gone and Replaced by TEXY_MAIN <h3><font color= "red">.We are under constructon and adding prouducts daily. Please check back often, if you can't find what your looking fo please use Cantact us below to find out If I have it. </font></h3>
Guest Posted June 7, 2003 Posted June 7, 2003 Colours of fonts etc can be changed in stylesheet.css The wiki has a handy guide to which class relates to which part of the page. http://wiki.oscommerce.com/helpHowtoStylesheetCatalog
beachboy Posted June 7, 2003 Author Posted June 7, 2003 I only want to change the color of 1 word or sentence..
Guest Posted June 7, 2003 Posted June 7, 2003 If you only want to change the colour for that part, find the line in default.php <td class="main" align="center"><br><?php echo TEXT_MAIN; ?></td> & change the class to eg class="mainred" & add mainred to the stylesheet, or you could try adding the colour directly in place of the class.
beachboy Posted June 7, 2003 Author Posted June 7, 2003 Here is the whole text: define('TEXT_MAIN','<B>Greetings,</B>, <br> Here at Beachboys Tool Shack you will find a wide variety of tools from Air Drills and Air wrenches,Cordless Drills,Drill bits,Automotive tools,Electrical tools,Garden tools,Hardware,Hydraulic tools,Machinery and shop tools,Paint tools,plumbing tools,Power tools,Socket sets,Tool boxes,Vises and wrenches. <br> Feel free to shop around, if you have any questions just give me a shout at the contact us link! <br> This is the <B>catalog page</B> From here you can access all the products, View your shopping cart and checkout. Remember that if you bundle your items you will pay less in shipping charges!! <h4>Sorry, We only ship to the lower 48 states and Canada.</h3>');<br><h3><font color= "red">.We are under constructon and adding products daily. Please check back often, if you can't find what your looking fo please use Contact us below to find out If I have it. </font></h3> You can see the line I want to make red..
beachboy Posted June 7, 2003 Author Posted June 7, 2003 The stylesheet isn't going to change one word or line of text...
Guest Posted June 7, 2003 Posted June 7, 2003 The stylesheet will change whatever text you apply a class too, so if you only apply the class to one line it will change just one line. If you really want to have the colour defined in the same file as the text, you could try adding <style type="text/css"> h3 {color: red} </style> before the <h3> tag. :)
beachboy Posted June 8, 2003 Author Posted June 8, 2003 I got it to work all I had to do was make can't to can/'t and add a ); at the end...
Guest Posted June 8, 2003 Posted June 8, 2003 Rick....that needs to be a backslash not a forward slash / and then it will work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.