osCmax v2.5 User Manual
Results 1 to 2 of 2

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 ...

      
  1. #1
    Active Member
    Join Date
    May 2004
    Location
    worcester ma
    Posts
    162
    Rep Power
    0


    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.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default here...

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

    Code:
    &lt;?php require&#40;DIR_WS_INCLUDES . 'meta_tags.php'&#41;; ?>
    &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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •