blase40 Posted January 9, 2009 Share Posted January 9, 2009 I am needing to make some edits to the page that displays all the products in a category. For example, if somebody clicks on the "Home & Garden" category in my store, they go to this page: http://www.magsondemand.com/homegarden-c-12.html What file is it that needs to be edited for me to pull the right column out of this page? I know how to remove the right column, and have done it on a few other pages... I just cant figure out how to do it here. Link to comment Share on other sites More sharing options...
germ Posted January 9, 2009 Share Posted January 9, 2009 Here's what the URL would be without the SEO mod: http://www.magsondemand.com/index.php?cPath=12 So the change goes in the root index.php file. Find this code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> Change it to: <!-- body_text_eof //--> <?php if ( ! isset($cPath) || ($cPath=='') ) { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> It's the same code, all I added is the new PHP part you see before and after the block of code. This makes the right column go away when ANY category is clicked. I think that is what you want. BACKUP THE FILE BEFORE MAKING ANY EDITS. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
blase40 Posted January 9, 2009 Author Share Posted January 9, 2009 Sounds like exactly what I am looking for. I will try it out later and report back. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.