Forums

Breadcrumb link text uses category titles, which are often long (2 posts)

  1. tysonjm
    Member
    Posted 3 years ago #

    Is it possible to show something different for a category title in the link text of a category breadcrumb? For example, my category title could be "Apple Types - Discover red, green and yellow apples". This is a good title for SEO purposes (important!), yet my breadcrumb will display that entire string, and it's just way too long. How would I make it just display "Apple Types" in the breadcrumb link-text?

    It seems all breadcrumb plugins and other code I've found uses the category title. Can I use something else (not sure what that would be, if I could assign another value to a category perhaps?). If not, is there a way to code it to only show the first three words of a category title then?

  2. mtekk
    Member
    Posted 3 years ago #

    Theoretically, yes; practically, probably not. You could devise some ugly string function based stripper to do what you want. However, I would not expect the maintainer of the plugin you are using to incorporate such modifications or support them (I know I will/would not).

    There is another, cleaner solution, category descriptions. The title "Apple Types - Discover red, green and yellow apples" may be good for SEO purposes, but really is too long. Everything after Apple Types only describes the category "Apple Types", and hence should be in the description of the category, not the title.

    You should check out using the category description filed in combination with the category title field when specifying categories. Then modify your theme so it uses category descriptions in your title and where ever else you want the full Category Name - Description. That way you get the SEO benefit of describing your category while maintaining category names that are of reasonable length.

Topic Closed

This topic has been closed to new replies.

About this Topic