Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Logo only visible in homepage


Recommended Posts

I want the logo only visible on the homepage. when I put the code in logo.php, it works fine except in category.

Here the logo is still visible.

 

<?php

if ( (strpos($_SERVER['PHP_SELF'],'index.php')) )

{?>

 

<!--here is the code from the logo-->

<?php

}

?>

 

but if I drop the code below, the logo gone. it is not visible anymore.

 

<?php

if ( strpos($_SERVER['PHP_SELF'],'index.php') && $category_depth == 'top' )

{?>

 

<!--here is the code from the logo-->

<?php

}

?>

 

i hope someone can help me out.

Link to comment
Share on other sites

In cm_header_logo.php, find:

    function isEnabled() {
      return $this->enabled;
    }

replace with:

/*
    function isEnabled() {
      return $this->enabled;
    }
*/	
	function isEnabled() {
     global $cPath, $PHP_SELF;
     if(($PHP_SELF == FILENAME_DEFAULT) && isset($cPath) && tep_not_null($cPath)){
      $this->enabled = false;
      }else{
      return $this->enabled;
      }
    }
Link to comment
Share on other sites

Can you try this inside the cm_header_logo.php

/*
    function isEnabled() {
      return $this->enabled;
    }
*/    
    function isEnabled() {
     global $cPath, $PHP_SELF;
     if(($PHP_SELF != FILENAME_DEFAULT) || tep_not_null($cPath)){
      $this->enabled = false;
      }else{
      return $this->enabled;
      }
    }
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...