zteger Posted December 24, 2005 Share Posted December 24, 2005 hi, since i installed Header tags Controller 2.5.5, there are blank lines between <head> and <title> in my html code, see exemple : <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html dir="LTR" lang="fr"> <head> <title> There are 11 blank lines (11 "CRLF"), and i can't see how this can happen ?? The code changed with Header Tags is as follow in "index.php" : <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html <?php echo HTML_PARAMS; ?>> <head> <?php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE; ?></title> <?php } ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> If i rename "header_tags.php" (for it goes through "<title><?php echo TITLE; ?></title>"), there's 1 blank line between <head> and <title>. Of course, my pages are posted correctly, but that's not clean at all, and i wonder if it might disturb robots ... Hows could i correct this ? I ran MS2Fr, on php 4.4.1 Thanks for your answers. zteger Quote Link to comment Share on other sites More sharing options...
zteger Posted December 27, 2005 Author Share Posted December 27, 2005 Hi, Nobody had this problem before ? Thanks for your help. zteger Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 28, 2005 Share Posted December 28, 2005 It won't cause any problems but it is not the way the code works either. The title and meta tags code comes from the includes/header_tags.php file. Somehow, it would seem, there has been some extra code added to it. Of course, it could be elsewhere in the files but that is the most likely place. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
zteger Posted December 28, 2005 Author Share Posted December 28, 2005 Yes !! "Of course, it could be elsewhere in the files" makes me think that i modified my includes/languages/french/header_tags.php file. That file was ... say, strange : with lots of blank lines between lines of code. I made another file, and that's it : it works !! Thanks for you answer Jack_mcs. zteger It won't cause any problems but it is not the way the code works either. The title and meta tags code comes from the includes/header_tags.php file. Somehow, it would seem, there has been some extra code added to it. Of course, it could be elsewhere in the files but that is the most likely place. Jack Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.