kudviss Posted March 3, 2007 Share Posted March 3, 2007 Hi everybody, I tried to install HeaderTags_V_2.6.2, i followed the installation instructions but when i came to this step : In product_info.php (around line 104) FIND <td class="pageHeading" valign="top"><?php echo $products_name; ?></td> <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td> REPLACE with <td valign="top"><h1><?php echo $products_name; ?></h1></td> <td align="right" valign="top"><h1><?php echo $products_price; ?></h1></td> NOTE: In any page in which you make the change to the title for Header Tags, you should also locate the line containing HEADING_TITLE, remove the pageHeading class and add the h1 tags as above.------------------------------------------------------------------------- I couldn't find the lines to replace, I only find these line instead: if (tep_not_null($product_info['products_model'])) { $products_name = '<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="pageHeading" align="left" width="60%">' . $product_info['products_name'] . '</td><td align="center" class="main">Model: ' . $product_info['products_model'] . '</td></tr></table>'; } else { $products_name = '<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="pageHeading" align="left">' . $product_info['products_name'] . '</td></tr></table>'; } ?> Please advise me what to do Best regards, Link to comment Share on other sites More sharing options...
www.in.no Posted March 3, 2007 Share Posted March 3, 2007 If you have installed other modifications then the code may have been altered before. You then have to backtrack the changes and figure out what part of the code you have to replace to getthe wanted functions.. Also try to search for part of the text, sometimes you dont find the exact text if you have modefied the files before.. Link to comment Share on other sites More sharing options...
kudviss Posted March 7, 2007 Author Share Posted March 7, 2007 I tried ti search for part of the text, the only code that looks like the one to replace is the code posted above. So please where should I place the h1 tags the autor said ?? Link to comment Share on other sites More sharing options...
bill110 Posted March 7, 2007 Share Posted March 7, 2007 This should work for you if (tep_not_null($product_info['products_model'])) { $products_name = '<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="pageHeading" align="left" width="60%"><H1>' . $product_info['products_name'] . '</H1></td><td align="center" class="main">Model: ' . $product_info['products_model'] . '</td></tr></table>'; } else { $products_name = '<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="pageHeading" align="left">' . $product_info['products_name'] . '</td></tr></table>'; } ?> This will probable only work if you have the shop set up to also display the products model number My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.