Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
523 views
in Themes by
Can Anyone Tell Me, How to Add Ask Button in Donut Theme at Bottom of the Right Side in Mobile (Like Mayro Theme).
Q2A version: 1.8.6
by
okay i will made it today , and share the code

1 Answer

0 votes
by
edited by

This code should work add it at header in theme-layer.php , and please first try it on your demo website first  , if your website have any type of damage i am not responsible ..

<style>#myaskbtn { position: fixed; bottom: 20px; left: 30px; z-index: 99; font-size: 24px; border: none; outline: none; cursor: pointer; padding: 5px; border-radius: 4px; } #myaskbtn:hover { background-color: #555; }</style><button type="button" id="myaskbtn" class="btn btn-warning btn-lg" data-toggle="modal" data-target="#myModal20"><i  class="fa">&#xf059;</i>ASK</button>

  <div class="modal fade" id="myModal20" role="dialog">

    <div class="modal-dialog">

      <div class="modal-content">

        <div class="modal-header">

          <button type="button" class="close" data-dismiss="modal">&times;</button>

          <h4 class="modal-title">ASK YOUR QUESTION HERE</h4>

        </div>

        <div class="modal-body">

        

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

                     <textarea STYLE="width:100%;height:250px;" type="text" id="ask" ></textarea>

                     <button type="submit" class="btn btn-primary">SUBMIT QUESTION</button>  <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

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

                        </form></div>

         </div>

        </div>

      

    </div>

 

...