Andrea Afra
asked 10 years ago

Autocomplete is set to "off" in the ‘question title’ field, however it still loads ‘results’ or blank

  • with bullets. How do I disable the suggestions from showing on the question forms only but keep it in the regular search field on the ‘answers’ page.
  • <div class="input-title">
                <label for="question-title"><?php _e( 'Your question title- Please include genders/ages. Ex: Problems with my (Male/32) girlfriend (Female/33)', 'dwqa' ) ?> *</label>
                <input type="text" name="question-title" id="question-title" placeholder="<?php _e( 'How should I...', 'dwqa' ) ?>" autocomplete="off" data-nonce="<?php echo wp_create_nonce( '_dwqa_filter_nonce' ) ?>" value="<?php echo isset( $_POST['question-title'] ) ? esc_html( $_POST['question-title'] ) : ''; ?>" />
                <span class="dwqa-search-loading dwqa-hide"></span>
                <span class="dwqa-search-clear fa fa-times dwqa-hide"></span>
            </div>  
    1 Answers
    DominicStaff
    answered 10 years ago

    Hi,
    To resolve this issue, you can add the following code to the style.css file:

    .dwqa-submit-question .input-title .dwqa-search-loading {
        display: none !important;
    }
    .dwqa-submit-question .search-results-suggest {
        display: none !important;
    }

    Hope this helps !

    andrea afra
    replied 10 years ago

    It works perfectly!

    I did want to preserve the search suggestions in the ‘All Questions’ page so I added a plugin "CSS Plug" and only added the above css to the assigned ‘Ask’ page in WordPress.

    Powered by DW Question & Answer Pro