Support » Fixing WordPress » Trim Category Name on the Category Archive Page

  • Resolved azlobicki

    (@azlobicki)


    Hello! I am pretty new to WordPress and am currently developing a mobile version of a blog. I am trying to trim the category name that displays on the category archive page, since some of the categories are too long and do not fit nicely on small mobile devices. I tried using the PHP function substr(single_cat_title(), 0, 20); though it does not work. Help would be greatly appreciated. Thank you for reading. =]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trim Category Name on the Category Archive Page’ is closed to new replies.