Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

text in header on homepage only


yog

Recommended Posts

You'd want code something like this in the header:

 

<?php
if ( ( basename($PHP_SELF) == FILENAME_DEFAULT  )  && ( is_null($cPath) ) ) {
?>

******** ERASE THIS LINE AND PUT THE HTML FOR YOUR TEXT HERE ********

<?php
}
?>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I had to disable the categories box cache because somebody replaced my categories for their own with links to their site.

 

Now, she/he has added an extra line break to my site that only shows in Firefox.

 

I did, however, solve my problem with this code:

 

<?php

 

if ($category_depth == 'top') {

 

echo('***html goes here***');

 

} ?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...