Okay
  Public Ticket #2022585
Character limitation
Closed

Comments

  • kellyhelene started the conversation

    Is there a way to limit the character count allowed in event descriptions on the front end form?  (word limitations are also OK, but characters are preferred.)

  •  894
    Zhivko replied

    Go to your theme functions.php file and at the bottom add following filter:

    add_filter('stec_builder_front_elements', function($el) {
        $characters_limit = 300; // config
        $el['description'] = array(
            "<textarea {{params}} maxlength='" . $characters_limit . "' name='description' placeholder='" . __('Description', 'stec') . "'></textarea>"
        );     return $el;
    });

    Stachethemes Developer

  • kellyhelene replied

    That worked perfectly!

    One more question- is it possible to have categories, keywords, and short descriptions included as well in the export?  After the description separated by line breaks, possibly?

  •  894
    Zhivko replied

    We'll be adding CSV import/export option next week which will allow this.


    Stachethemes Developer