Forums » SEPHP Help and Tips

Character Count for About Us

    • 283 posts
    July 18, 2021 4:26 PM EDT

    Is there a snippet of CSS we can add to the about us to limit the number of characters in the About us?

    • 283 posts
    July 18, 2021 4:27 PM EDT

    About me in the profile fields

    • Moderator
    • 5919 posts
    July 19, 2021 7:56 AM EDT

    I would like to move this to feature requests if you don't object. It would be a good feature to have. 

    • Moderator
    • 5919 posts
    July 19, 2021 8:37 AM EDT

    the following, added to the end of your theme copy, in the admin panel. Choose the theme.css .

    .profile_fields > ul > li.field_about_me > span + span {
      white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 175ch;
    }

     

    It works but you'll need to figure out a bit more about the CSS. It only works on one line and so it is limited in what it can do. You may need to create a little plugin to do more manipulating of it. I'm not a CSS whiz. 

    • 626 posts
    July 23, 2021 3:21 PM EDT

    Does this just work for that field type or can it be extended to any other?

    I want to get the wyciwyg editor in a field type.