ThemeShaper Forums » Thematic


Comment author's name is cut short

(5 posts)
  • Started 12 years ago by cookieandkate
  • Latest reply from cookieandkate
  • This topic is not resolved
  1. Hello! I made some changes to my comments lately (changed font formatting, comment margin/padding and moved the gravatar from the left to the right side), and noticed a strange side effect. Now the author's names are cut short, like there's a character limit imposed on them. I believe this is a new issue related to the changes I made, but I could be wrong. I just noticed it.

    You can see a few examples in the comments here: Several of the commenter's names end abruptly.

    Please let me know if you have any clues how to fix the issue! Thank you!

    Posted 12 years ago #
  2. middlesister

    It probably has to do with some changes you made, neither thematic nor wordpress has any character limit on commenters names that I know of. But normal css tweaks are not enough for this change, it has do be done with code. Have you made any changes to functions.php? Could it be a plugin?

    Posted 12 years ago #
  3. actually you can see in the source code that there IS a limit on the length of the URL field, but it is something like 50 characters so i can't see why that'd be tripping you up.

    Posted 12 years ago #
  4. middlesister, I have made some changes to my functions.php, but none that I know of that would limit the characters. The character limit on my commenter's names is now 20, not 50 like it should be. I searched through my functions.php and didn't find "20" in there. I have installed a couple of plugins recently, but none that are related to comments. I'm lost.

    Posted 12 years ago #
  5. I'm still stuck. I tried inserting this code into my functions.php to increase the character count from 20 to 45, but it didn't work.

    add_filter('get_comment_author', create_function('$author','return substr($author,0,40);'));

    Any more ideas?

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.