Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove all heading images


pwaara

Recommended Posts

Posted

I couldn't find an easy way to do this anywhere in the forums, so I thought I would post my method of removing all heading images from all pages. This has only been tested in OSC 2.2 MS2. Three simply changes can remove all the images.

  • First, edit tep_image in functions/html_output to contain the following code as the first or second if statement.

// If width and height are -1 then don't display image.  Set defaults to -1 in admin to remove all images.
if (($width == -1) && ($height == -1)) {
 return false;
 }

  • Next, in admin set both Heading Image Width and Heading Image Height to -1
  • Finally, to maintain the row height, edit stylesheet.css and add a height attribute to TD.pageHeading. For example,

TD.pageHeading, DIV.pageHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 26px;
 font-weight: bold;
 color: #000000;
 height: 60;
}

 

I don't have the OSC part of site live yet, but it should be in a week or so. You will be able to find it at Christine Waara Studio.

 

Hope you find this tip useful.

 

~Pat

  • 4 weeks later...
Posted

Thanks pat. Your easy solution saved me a substantial amount of time and pain :D

----------------------------------------

One day I will be a newie no more

Posted

another way is to use the images/pixel_trans.gif

 

make 2 new folders and put the above image in there

 

just copy & rename it to

table_background_account.gif

 

etc...

 

till

 

table_background_specials.gif

 

and you're done too

 

i just like this better, because i dont like to adjust core functions who get read with EVERY pageload, thats asking for trouble when you have a hugh modded website.

 

NOTE: just like always backup your own images if you changed them yourself

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Archived

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

×
×
  • Create New...