change

  • This topic has 7 replies, 2 voices, and was last updated 8 years, 5 months ago by Dynamic Studio S.rl. P.IVA 03724920966.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1369438

    Hello,

    I have two problems:

    1) I need to set as NOT required this field Evento Descrizione (richiesto)

    2) I need to set ALL DAY EVENT as default without hours but just day

    Thanks

    Mauro

    #1369474

    Point 1 is solved with this code, but I need to set as required the field CATEGORY (not tag but catagory)

    and still problem with point 2

    Thanks

    Mauro

    #1369504

    point 2 is solved with javascript

    still to solve category as required and if is possibile to change the category to SELECT (I must for the user to select just one category)

    Thanks

    Mauro

    #1370610
    Patricia
    Member

    Hey Mauro,

    Thank you for reaching out to us!

    To set the category field as required, you can use the following snippet:

    https://gist.github.com/nefeline/d31bb0053e6ca6507c216fa6d3abd782

    You’ll have to replace the ‘post_title’ with ‘tax_input’. You’ll find more info about our form fields here.

    To allow your users to select only one category from the drop down menu, you just have to remove the “multiple” option from Community Events submission form.

    It’s important that you don’t edit the view files directly in the plugin: you should copy them into your theme first, and edit them there. This will ensure that any modifications you do make will not be overwritten by updating the plugin.

    Please copy the taxonomy.php file from:

    the-events-calendar-community-events/src/views/community/modules/taxonomy.php

    Paste it to:

    [your-theme]/tribe-events/community/modules/taxonomy.php

    Now open the file and remove the multiple option from line 90.

    I hope this helps! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!

    Cheers,

    Patricia

    #1371298

    Thanks it works but for both categories and tags, it’s not a problem if I can hide the TAGs section into the form

    #1372589
    Patricia
    Member

    Hi Mauro,

    That’s correct: it will work for both categories and tags. To hide the Event Tags from Community Events submission form, please add the following code in your theme’s style.css file:

    .tribe-section.tribe-section-taxonomy ~ .tribe-section.tribe-section-taxonomy {
        display: none !important;
    }

    I hope this helps! Let me know if you have any other questions and I’ll be happy to assist!

    Thanks,

    Patricia

    #1389137
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘change’ is closed to new replies.