Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header & Title - Where is the code?


Guest

Recommended Posts

I have looked everywhere and can't seem to find out where the code is that writes the TITLE tag and META HTTP tag. I want to swap these two around so that it writes the TITLE first.

 

Any ideas?

Link to comment
Share on other sites

I have looked everywhere and can't seem to find out where the code is that writes the TITLE tag and META HTTP tag. I want to swap these two around so that it writes the TITLE first.

 

Any ideas?

 

They are in each of the main files. like "index.php", product_info.php, etc. etc. Look in code and it will be after all teh intial queries, just before the head and body.

 

Example (but this has dynamic header tags):

 

<head>

<title><?php echo TITLE; ?> - <?php echo $page_title; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

Link to comment
Share on other sites

Thanks for that, it's easy when you know how lol

 

I was trying to make it harder than it is by looking in all the sub pages... D'oh!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...