chenle Posted May 21, 2009 Share Posted May 21, 2009 Hi All, I have read the "How Do I file" and i simple can't find it or didn't understand it. How do I add a line of little text links (for SEO puposes) at the end on the index.php page?? I want to have link like that: "shoes | shirts | underwear | " with link on the words for each category of mine. can someone please tell me how to do it? Thank you, C.L Link to comment Share on other sites More sharing options...
germ Posted May 22, 2009 Share Posted May 22, 2009 <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=xx'); ?>" class="someclass" title="Shoes">Shoes</a> | <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=yy'); ?>" class="someclass" title="Shirts">Shirts</a> | <a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=zz'); ?>" class="someclass" title="Underwear">Underwear</a> | Change these parts: cPath=xx cPath=yy cPath=zz To whatever your category values are. And this: class="someclass" To whatever CSS class you use for links. If you have a multilingual shop you'll want to use defined constants from language files instead of the actual english words. 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...
spooks Posted May 22, 2009 Share Posted May 22, 2009 assuming shoes is category 1 <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1' ) . '">shoes</a>'; ?> you could these in the footer, so they're on every page. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
chenle Posted May 22, 2009 Author Share Posted May 22, 2009 Ok I partly understand :-) but 2 questions..how to get into footer? and where in the footer to put this code? Thank you so much C.L Link to comment Share on other sites More sharing options...
chenle Posted May 22, 2009 Author Share Posted May 22, 2009 Hey Guys I Did it !!!!!!! Thank you so much :-) Link to comment Share on other sites More sharing options...
fetish Posted May 26, 2009 Share Posted May 26, 2009 Hey Guys I Did it !!!!!!! Thank you so much :-) how you did it? can post the example code? thnxs Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.