chrisneils Posted May 21, 2008 Posted May 21, 2008 i have added page titles to my homepage but the title stays the same when you click on the category links. i would like to have unique page titles for each of my CATEGORY pages not my product pages. i have already installed the contribution that changes the product page titles but i want to edit my category page titles. does anybody know how to do this? thank you.
spooks Posted May 21, 2008 Posted May 21, 2008 This should do what I think you want, but my store has many mods, so it might not work for you. in index.php, find: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> replace with: <td class="pageHeading"><?php echo ($category['categories_name'] ? $category['categories_name'] : HEADING_TITLE); ?></td> :) 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.
chrisneils Posted May 21, 2008 Author Posted May 21, 2008 This should do what I think you want, but my store has many mods, so it might not work for you. in index.php, find: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> replace with: <td class="pageHeading"><?php echo ($category['categories_name'] ? $category['categories_name'] : HEADING_TITLE); ?></td> :) can't seem to find that line. what's the complete path to index.php i'm supposed to modify?... and how am i supposed to edit the category page titles if all goes well with the changes you've suggested?
spooks Posted May 21, 2008 Posted May 21, 2008 index.php is in the catalog directory on a standard setup. You modify the catagory titles in admin!!!!!! :rolleyes: 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.
Jack_mcs Posted May 21, 2008 Posted May 21, 2008 i have added page titles to my homepage but the title stays the same when you click on the category links. i would like to have unique page titles for each of my CATEGORY pages not my product pages. i have already installed the contribution that changes the product page titles but i want to edit my category page titles. does anybody know how to do this? thank you. The better wasy is to install the Header Tags SEO contribution. Making changes to just get the title changed isn't going to do you a lot of good and probably not worth the effort. Jack 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
chrisneils Posted May 22, 2008 Author Posted May 22, 2008 The better wasy is to install the Header Tags SEO contribution. Making changes to just get the title changed isn't going to do you a lot of good and probably not worth the effort. Jack So you understand what I'm trying to do right? I want the page titles of my category pages to be unique instead of having the same page title for all of my pages. and what does that contribution exactly do? i read the contribution and don't completely understand what it does.
Jack_mcs Posted May 22, 2008 Posted May 22, 2008 So you understand what I'm trying to do right? I want the page titles of my category pages to be unique instead of having the same page title for all of my pages. and what does that contribution exactly do? i read the contribution and don't completely understand what it does. Yes, i understand. What you are trying to do is what all shop owners do eventually. Header Tags SEO will make it so every page of your shop can have a unique title and meta tags. There are about seven other contributions that will do that to the same or lesser degree. Header Tags also allows you to add text under the category name on the page, change the text on the logo for each page and various other things. You may want to read through this thread to get an idea of what other options are available. Jack 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.