Viewing 8 replies - 1 through 8 (of 8 total)
  • This could be due to a CSS issue or a code placement issue. Can you please post an URL from your website where this problem is happening, so that we can check it?

    This could be due to a CSS issue or a code placement issue. Can you please post an URL from your website where this problem is happening, so that we can check it?

    Thread Starter Jonathan Webpixelia

    (@marocweb)

    Thank you for your reply. Here is a url of a post: https://muslim-sante.com/fr/formation-hijama-sur-rabat-hassan/

    Insert this code on your footer.php right below the call to wp_footer():

    <script>
    (function($){
    	$(document).ready(function(){
    		$( ".wysija-after-comment" ).insertBefore( $( ".form-submit" ) );
    	});
    })(window.jQuery);
    </script>
    Thread Starter Jonathan Webpixelia

    (@marocweb)

    Hi,
    Thank you very much.
    It’s working great. ??

    Hi
    Firstly, thank you for the invaluable plugin. Secondly, I put the above code in footer.php, a few lines before the end of file, but it did not move the checkbox above submit button. I believe this checkbox must go by default above submit button, because it is part of our form. It is meaningless to put part of the form after the submit button. This is particularly important for blind people like me, who don’t usually check the form fields after submit button. Subscribe 2 allows us to decide whether we want the checkbox above or below the button, but unfortunately it is not compatible with my current theme: Travelify. It does not show the checkbox at all. I also believe the default value of the checkbox should be checked. Please guide me how to make it checked and how to move it above submit button.

    Hi @javad2000

    This is the code to make your checkbox checked:

    <script>
    (function($){
    	$(document).ready(function(){
    		$('#wysija-box-after-comment').attr('checked','checked');
    	});
    })(window.jQuery);
    </script>

    And if the above script to move the checkbox above your submit button is not working, that might have something to do with your theme. Have you modified the script to get the proper class or id of the submit button?

    Hi Wysija
    Thank you for the reply. I was doubtful whether I should add the code to “Comments.php” or “Footer.php”. Following your advice, I added the above code to the end of “footer.php”, where it says “wp_footer”. Unfortunately, this code does not make the checkbox checked. When I add the above code, my page seems to have some problem, because it does not show the newsletter and statistics anymore. Yes, I have manipulated the theme, but I have not changed the ID of submit button. I don’t even know how to get or set the ID of submit button. I have added only a few lines to show the newsletter subscription form, the statistics and the copyright message. By “Newsletter”, I mean “Tribulent Newsletters Lite”. Although those lines come before your script, this script make all those codes stop working. I think this script comes across a kind of warning or error in my theme. I am using Travelify theme. I wish your plugin had an embedded option for moving the checkbox above submit button and making the default status checked. Today, I installed “Subscribe To Comments Reloaded”. This plugin, again does not allow moving the checkbox above submit botton, but it allows making the checkbox checked. It also provides a button to subscribe or unsubscribe to comments without sending our own comment. Thanks again for your help. I think I will go with “Subscribe To Comments Reloaded”. At the same time, I welcome further tips and tricks for moving the MailPoet subscribe checkbox above submit button and also making it checked.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Move checkbox in comment form’ is closed to new replies.