How to limit the number of characters in an event description

Home Forums Calendar Products Community Events How to limit the number of characters in an event description

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32210
    Mark
    Participant

    Is there a way that we can limit the number of characters that a person can type into the description field and let them know what the limit is? We would like to limit it to about 420 characters if possible.

    #32444
    Casey
    Participant

    Mark,
    Thanks for reaching out. Unfortunately there’s not a simple way to do this that I know of. I’m going to pass this request on to our developers to see if they have any suggestions. Please stand by.

    #32673
    Casey
    Participant

    Mark,
    Our developers have chimed in on this and given me some code that will help out with this. Add the following code to your theme’s functions.php file: https://gist.github.com/ckpicker/4956646

    Also, download this file and upload it to the following location: ‘YOUR_THEME_DIRECTORY/js/description-count.js’: http://d.pr/f/ijWn

    Finally, if you want to add a character count, you can read how to do that here: http://konstruktors.com/blog/wordpress/3685-limit-number-words-characters-in-wordpress-editor/

    I hope that helps! Please let me know if you have further questions. Thanks!

    #32677
    Casey
    Participant

    Mark,
    Actually, use this code for your JavaScript instead: http://d.pr/f/QnGd

    This contains the character count functionality as well. Let me know if that does the trick. Thanks!

    #32990
    Casey
    Participant

    Mark,
    Just wanted to check back in and see if the code above got you sorted out. Just let me know! Thanks!

    #33190
    Casey
    Participant

    Mark,
    Since we haven’t heard back from you, I’m going to go ahead and close this thread out. Feel free to start another thread if you have further questions. Thanks!

    #978682
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to limit the number of characters in an event description’ is closed to new replies.