In this short article I will explain how I designed my wordpress theme's comment section with bootstrap 3.0.2. For the most recent changes, you find my theme on github. If you want to see a live demo, just inspect the comment form on this site. It uses exactly this bootstrap styled form I am discussing here.
In order to follow the content's of this blog post, you should have basic experience with PHP and HTML/CSS.
The tricky question here is, whether we can use a action or filter hook
to manipulate the comment form to our liking, or if we have to use and
modify the original
comment_form() function directly. Our goal is to
decorate the form with some bootstrap widget classes and use the
bootstrap grid layout. We want to obtain a horizontal form, such as
After a quick search, I found the function
$post_id); in the
wordpress codex. While it looks promising on the first glimpse, some
hindrances become clear after further thinking through. The function's
Most strings and form fields may be controlled through the $args array passed into the function, while you may …