Claudia Hetz
asked 9 years ago

I followed the instructions what I believe to be accurately…and all the pages except the single question view are formating and displaying nicely. I am at a total loss as to what is going on with this single view page and also the whacky spacing and objects.

![enter image description here](http://content.screencast.com/users/pcampbell66/folders/Jing/media/2907e02e-cb02-4d21-a2dd-dd895c952dc6/2015-05-23_1821.png "enter image title here")

1 Answers
DominicStaff
answered 9 years ago

Hi,
Please send me your site URL, we will check and help you resolve it.
Regards,

mcm-ct
replied 9 years ago

It seems that is was something to do with WPAMU not stripping out returns…so that is fixed – thanks

site is http://mcm-ct.com

I do have one question however, I would like to have the comments option on the forms as a button and then when you click it a the comments form becomes visible…would you have any suggestions for how you think would be best to approach this?

When I am done with that if it’s good – I can show it to you guys and then maybe its something good for the build o GitHub

dominic Staff
replied 9 years ago

You can open the single-question.php file in the folder path "plugins > dw-question-answer > inc > templates > default". Find the line 55.
Replace the following code:

<div class="dwqa-comments">
    <?php comments_template(); ?>
</div>

With new code:

<a href="#" id="Leave_a_comment">Leave a Comment</a>
<div id="comment_form_wrapper" style="display: none;">
                          <?php comments_template( '', true ); ?>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#Leave_a_comment').click(function() {
            $('#comment_form_wrapper').show();
        });
    });

</script>

Hope this helps !

Powered by DW Question & Answer Pro