THIS THREAD HAS BEEN CLOSED.

Disable required category dropdow in popup question

Updated on Oct 12, 2015 in QAEngine
0 on Oct 12, 2015

Add these code into child-theme/functions.php file to remove required category dropdown

add_action( 'wp_footer','cs_add_script', 11500 );
 function cs_add_script(){ ?>
 <script type="text/javascript">
 (function(Views, Models, $, Backbone) {
 $(document).ready(function(){
 Views.EditQuestionModal.prototype.validate = function(){
 this.submit_validator = jQuery("form#submit_question").validate({
 ignore: "",
 rules: {
 post_title: "required",
 },
 messages: {
 post_title: qa_front.form_auth.error_msg,
 question_category: qa_front.form_auth.error_msg,
 post_content: qa_front.form_auth.error_msg,
 }
 });
 }
 });
 })(QAEngine.Views, QAEngine.Models, jQuery, Backbone);
 </script>
 <?php
 }

  • Liked by
  • Javier Gracia
Loading more replies
Posting & Replying function will be deactivated from 3pm GMT+7 12th Sep.
Read More