[Theme: Swell Lite] Move comment form to top
-
Can someone help me with moving the comment form to the top? So above the messages? Now it is at the bottom, causing almost nobody noticing it.
Thank you <3
-
Short version, if you’re already familiar with coding:
You create a child theme –> copy comments.php file from your parent theme to your child theme –> move the
<?php comment_form(); ?>
line to where you want the comment form to appear (right above the comments, in this case)..
Long version, with more details, in case you aren’t familiar with coding:
Step 1
Go to Plugins –> Add New –> search for Child Theme Configurator –> install & activate that plugin [screenshot]Step 2
Go to Tools –> Child Themes –> Select Create New Child Theme –> hit Generate Child Theme Files button [screenshot]Step 3
Go to Appearance –> Themes –> activate your new Swell Lite Child theme (not Swell Light, make sure that it’s Swell Lite Child)Step 4
Go to Tools — Child Themes –> click on Files tab –> in parent templates section, select comments & hit Copy Selected to Child Theme button [screenshot]Step 5
Go to Appearance –> Editor –> make sure that you’re editing the Swell Lite Child theme in the Select theme to edit box –> choose Comments.php file –> highlight<?php comment_form(); ?>
line (it should be at the end of the comments.php file, scroll down to see it) –> right-click and cut it (cut, do not copy, because if you copy, you’ll end up with 2 comment forms on your site) [screenshot]Step 6
still in the same file, now scroll up and paste it wherever you want (for example, right below the// you can start editing here
line) [screenshot]..
And viola, you’re done! Your comment form is now above comments. [screenshot]
Thank you so much! Going to fix it now 🙂 And awesome that there is a child theme plugin now!
Oh man, now I have both fixed the comment form and created a child theme (postponed it because last time it took me a few hours to figure everything out, but forgot everything already). Thank you so much! Can’t believe you put so much effort and time into making a step by step guide for my questions <3 <3
- The topic ‘[Theme: Swell Lite] Move comment form to top’ is closed to new replies.