Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
435 views
in Themes by

HI!

I would like to modify my template's ask code to search.

<div class="search-wrapper">

                <?php if ( qa_opt( 'donut_banner_show_ask_box' ) ): ?>

                    <div class="search-bar col-lg-4 col-lg-push-4 col-md-6 col-md-push-3 col-sm-8 col-sm-push-2 col-xs-10 col-xs-push-1">

                        <form class="form-inline" method="post" action="<?php echo qa_path_html( 'qa-question' ); ?>">

                            <div class="form-group form-group-lg">

                                <input type="text" class="form-control input-lg ask-field" id="ask"

                                       placeholder="<?php echo donut_lang( 'ask_placeholder' )?>" name="title">

                            </div>

                            <button type="submit" class="btn btn-primary btn-lg ask-btn hidden-xs"><?php echo donut_lang( 'ask_button' )?></button>

                            <input type="hidden" name="doask1" value="1">

                        </form>

                    </div>

</div>

How can I change the code if I wanted to do search NOT make a new question? 

Thanks,

dataeater

Q2A version: 1.8

Please log in or register to answer this question.

...