osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

move title up in code? should be right after <head>

This is a discussion on move title up in code? should be right after <head> within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I need to know if there is a way to move the title tag up in the html code that ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-09-2004, 10:47 AM
Active Member
 
Join Date: May 2004
Location: worcester ma
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fridgemags
Default move title up in code? should be right after <head>

I need to know if there is a way to move the title tag up in the html code that a client browser sees.

I say this because the proper way to code a page in html is to have the title directly after the &lt;/head> tag.

I tried moving the code up in the mainpage.tpl.php file but when viewed in a browser my title said something like &lt;title> Meta_tags&lt;/title> so moving the code up in the main_page.tpl.php file obviously broke the code.

Is there a way to make the titlecome directly after the &lt;head> tag.

You can go to http://www.fridgemags.com and check ... for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-09-2004, 12:46 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,990
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default here...

You have to move 2 lines to just below the head tag:

Code:
&lt;?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?>
&lt;title>&lt;?php echo META_TAG_TITLE; ?>&lt;/title>
See, META_TAG_TITLE is defined in meta_tags.php, so meta_tags.php must be included before you echo META_TAG_TITLE
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How 2 change <title>osCommerce</title> vannelle osCommerce 2.2 Modification Help 3 06-08-2004 04:25 PM
Postal code label and input box shifted left after move cvc505 osCommerce 2.2 Installation Help 0 06-09-2003 08:56 PM
Beating head on keyboard missing php stasha osCommerce 2.2 Installation Help 2 03-29-2003 07:19 PM
How Do I Move Delete and Move Boxes Around? OyedeleG osCommerce 2.2 Modification Help 2 03-18-2003 01:37 AM
How to edit <head> pgowder osCommerce 2.2 Modification Help 5 01-03-2003 09:00 AM


All times are GMT -8. The time now is 04:29 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax