Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Different font for heading in default.php


Gordonz

Recommended Posts

How do I get a different font for the heading in main page default.php than the rest.

I tried adding TD.firstHeading

 

TD.pageHeading, DIV.pageHeading {

 font-family: Verdana, Arial, sans-serif;

 font-size: 14px;

 font-weight: bold;

 color: #ffcc99;

}

TD.firstHeading, DIV.firstHeading {

 font-family: Verdana, Arial, sans-serif;

 font-size: 20px;

 font-weight: bold;

 color: #ffcc99;

then in default.php this

 

<tr>

           <td class="firstHeading" align="right"><?php echo HEADING_TITLE; ?></td></font>

           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

         </tr>

I am just learing so I am probably doing somthing really stupid.

Link to comment
Share on other sites

Don't forget to clear your cache or do a Shift Refresh to see the changes.

 

And make sure there is a } at the end of:

 

TD.firstHeading, DIV.firstHeading {  

font-family: Verdana, Arial, sans-serif;  

font-size: 20px;  

font-weight: bold;  

color: #ffcc99;

Link to comment
Share on other sites

It has not picked up on the class="firstHeading"

 

tr>

       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

         <tr>

           <td class="pageHeading">Beachfront Bed and Breakfast<br>A Luxury Golden Bay Accommodation Nelson New  

     Zealand</td>

           <td class="pageHeading" align="right"><img src="images/view_of_golden_bay_t.jpg" border="0" alt="We love to sit in bed and look out over Golden Bay, so we designed the accomodation with the same 'in bed' view." title=" We love to sit in bed and look out over Golden Bay, so we designed the accomodation with the same 'in bed' view. " width="200" height="134"></td>

Do I have to do something else to introduce the class="firstHeading"?

Link to comment
Share on other sites

It cant decide not to show code you have updated, you have missed something.

 

Go back and check the file, make sure you have done the change, then save and reupload.

 

To clear cache it is cntrl & F5, not shift. :wink:

 

Make sure cache is cleared properly!

 

CC.

Link to comment
Share on other sites

:wink:

 

Would love to say shift refresh works for me, but it dont. :?

 

Wonder why that is?

I will need to investigate.

 

Shift refresh does nothing for me... :(

 

CC.

Link to comment
Share on other sites

Sorted :D

There are 3 occurences of HEADING_TITLE in default.php, presumably logged in, not logged in and other pages. I was only changing the class of one.

Thanks for your help fellas :D :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...