Alessandro, I am learning sooo much dude. After watching your previous video, I went ahead and styled my comments section. But I must admit, I cheated... Because we are using Bootstrap, I wanted to use Bootstrap's media object component. What I found was that Bootstrap uses a few classes and I wasn't sure how to incorporate them into the comments easily so I did a search and found a nice plugin by Darrin Boutote called "WP Bootstrap Comments", It works seamlessly. It is a comment walker sort of like the nav walker.
Ahahahaha, cheating is allow, no problem. I decided to edit everything with only CSS to not touch the default structure of WordPress, but also editing the native structure with your own custom markup is totally fine. Just for the sake of learning, if you happen to have time, you should extract the source code of the plugin and try to incorporate it into your function files, and maybe rewrite it better on your own. That's not cheating :D
What I will probably end up doing is writing the CSS myself (for learning purposes) to get to understand the WP structure better and become more comfortable using it for future reference. Thanks for the vid on changing the comment form.
Good approach. You're welcome for the video, pretty weird way of updating a form, right? You can totally see how some sections were coded differently and maybe left a bit behind compared to others.
I don't know if you're still replying to these comments - but here it goes: I was sad that I watched all three of your Comment editing tutorials and didn't get what I came for - you skipped it at the very end of the video. You didn't define out HOW to edit the output fields around the Comment List - I know you gave us the args that let us change the order, or cal it up in HTML 5 etc but what I really needed to know is how to edit what HTML gets called for each of the comment field elements - Why? I need to add Schema markup to those html elements. Need to add itemprop="text" for example to where the comment content appears - i.e. Comment text here What controls THAT part of the comments??
That's such a specific case that you can't expect my generic tutorial to tackle exactly what you need. A simple Google search and there you go: codex.wordpress.org/Function_Reference/wp_list_comments Check the section title `Comments Only With A Custom Comment Display`
Hey Alex.... Thanks for your video.. And i have a question...or more :D. I see that a lot of sites have Disqus plugin ( inclusive you :P ) Is good to change the default wordpress comments with Disqus ones? ... also if i do that... how i can be sure that a user put disqus plugin in the comments? . thanks
Disqus is definitely more powerful and complete than the default system of WordPress, that in my opinion is a bit outdated. You can "require" a plugin inside a theme, but the problem with Disqus is that you need an account in order to use it and I don't know fi it's a good idea to force a user to create an account with a third party website in order to use your theme. Cheers
Hey Alecaddd, your videos are just awesome. I have been following you for a long time. I am currently planning to create a plugin that would create multiple posts with different contents, all on a single button click. For SEO purposes I plan to use All-In-One SEO Pack - I'm sure you've heared the name before. :D . I believe it has some magical powers from an SEO perspective. However, what I am worried about is that, if I create posts using my plugin, is it going to affect my All-In-One SEO Pack's SEO boost? If so, how can I bypass this? Maybe creating posts as draft and publishing them manually would help, will it? The reason I am worried is that, I think the magical All-In-One SEO works perfectly from the WordPress default post creator. Since it generates meta description and other necessary one page SEO changes from beneath the Default post creator. I hope to have a response from you. Thank you so much for what you are doing. Keep up the good work.
**MTA:** Make sure that your 'comment_field' html in the $args array includes a closing div tag (not done in video) or you may have page formatting errors. For me, it pushed my injected footer to the right side.
Hey Alessandro, I am using the same code as you, except the css and my reply button does not work. When you click reply, the reply field shows up where it is supposed to, but when you hit the send button, nothing happens... I have searched everywhere and cannot figure out what is wrong. I am not using bootstrap, but that shouldn't matter for the reply to work. I know my wp isn't corrupt because it works on twenty-sixteen theme. I have also tried loading the js in functions.php and it should be working considering the reply form pops up and has the cancel reply etc. Thanks for the great videos! I hope to support you soon, your videos are a life saver!
Add the following code to your enqueue.php: function mytheme_enqueue_comment_reply() { // on single blog post pages with comments open and threaded comments if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { // enqueue the javascript that performs in-link comment reply fanciness wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_comment_reply' );
Mh, what do you mean? If you followed the entire series, you will know how to add custom fields to the comment section, that in my case is a Custom Post Type, and how to let the user fill up those fields.
@@alecaddd Thanks Al, got it :) Hope you have tutorials for extended recent post widget with thumbnails. this is very common but didn't see any tutorials. Thanks, advance :)
Now its worked but how can i pull comment form bottom to other fields i want to name field display top of comment form. Thank you for your attention and for videos you are awesome!
Simple, fast professional and functional. Congratulations great work!
Thanks for sharing
Thank you so much
These videos are awesome. I really appreciate that you go into detail on each step!
Thanks, This is exactly what I am looking for.
Good Job..Your Tutorials Are Really So Awesome..
Thank you so much :D
Alessandro, I am learning sooo much dude. After watching your previous video, I went ahead and styled my comments section. But I must admit, I cheated... Because we are using Bootstrap, I wanted to use Bootstrap's media object component. What I found was that Bootstrap uses a few classes and I wasn't sure how to incorporate them into the comments easily so I did a search and found a nice plugin by Darrin Boutote called "WP Bootstrap Comments", It works seamlessly. It is a comment walker sort of like the nav walker.
Ahahahaha, cheating is allow, no problem.
I decided to edit everything with only CSS to not touch the default structure of WordPress, but also editing the native structure with your own custom markup is totally fine.
Just for the sake of learning, if you happen to have time, you should extract the source code of the plugin and try to incorporate it into your function files, and maybe rewrite it better on your own. That's not cheating :D
What I will probably end up doing is writing the CSS myself (for learning purposes) to get to understand the WP structure better and become more comfortable using it for future reference. Thanks for the vid on changing the comment form.
Good approach.
You're welcome for the video, pretty weird way of updating a form, right? You can totally see how some sections were coded differently and maybe left a bit behind compared to others.
Yes. I am now looking at the other $args that can be used to modify the comments structure then I'll get busy on the CSS.
I don't know if you're still replying to these comments - but here it goes:
I was sad that I watched all three of your Comment editing tutorials and didn't get what I came for - you skipped it at the very end of the video. You didn't define out HOW to edit the output fields around the Comment List - I know you gave us the args that let us change the order, or cal it up in HTML 5 etc but what I really needed to know is how to edit what HTML gets called for each of the comment field elements -
Why? I need to add Schema markup to those html elements. Need to add itemprop="text" for example to where the comment content appears -
i.e. Comment text here
What controls THAT part of the comments??
That's such a specific case that you can't expect my generic tutorial to tackle exactly what you need.
A simple Google search and there you go:
codex.wordpress.org/Function_Reference/wp_list_comments
Check the section title `Comments Only With A Custom Comment Display`
@@alecaddd thank you, i been looking everywhere for this but some how over looked the comments only ... Awesome guide
Hey bro can i change admin says on comment
When I click on Post comment button to post a comment it redirects me to home page!! Would you please help me solve that? Thank you
good work bro,
i have a question, how do you place the comment form on top of the comments?
Hey Alex.... Thanks for your video.. And i have a question...or more :D. I see that a lot of sites have Disqus plugin ( inclusive you :P ) Is good to change the default wordpress comments with Disqus ones? ... also if i do that... how i can be sure that a user put disqus plugin in the comments? . thanks
Disqus is definitely more powerful and complete than the default system of WordPress, that in my opinion is a bit outdated.
You can "require" a plugin inside a theme, but the problem with Disqus is that you need an account in order to use it and I don't know fi it's a good idea to force a user to create an account with a third party website in order to use your theme.
Cheers
Hey Alecaddd, your videos are just awesome. I have been following you for a long time. I am currently planning to create a plugin that would create multiple posts with different contents, all on a single button click. For SEO purposes I plan to use All-In-One SEO Pack - I'm sure you've heared the name before. :D . I believe it has some magical powers from an SEO perspective.
However, what I am worried about is that, if I create posts using my plugin, is it going to affect my All-In-One SEO Pack's SEO boost? If so, how can I bypass this? Maybe creating posts as draft and publishing them manually would help, will it?
The reason I am worried is that, I think the magical All-In-One SEO works perfectly from the WordPress default post creator. Since it generates meta description and other necessary one page SEO changes from beneath the Default post creator.
I hope to have a response from you. Thank you so much for what you are doing. Keep up the good work.
**MTA:** Make sure that your 'comment_field' html in the $args array includes a closing div tag (not done in video) or you may have page formatting errors. For me, it pushed my injected footer to the right side.
That's Awesome
Hey Alessandro, I am using the same code as you, except the css and my reply button does not work. When you click reply, the reply field shows up where it is supposed to, but when you hit the send button, nothing happens... I have searched everywhere and cannot figure out what is wrong. I am not using bootstrap, but that shouldn't matter for the reply to work. I know my wp isn't corrupt because it works on twenty-sixteen theme. I have also tried loading the js in functions.php and it should be working considering the reply form pops up and has the cancel reply etc. Thanks for the great videos! I hope to support you soon, your videos are a life saver!
Add the following code to your enqueue.php:
function mytheme_enqueue_comment_reply() {
// on single blog post pages with comments open and threaded comments
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
// enqueue the javascript that performs in-link comment reply fanciness
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_comment_reply' );
could you tell me ?
how to add extra comment filed and dynamic that.
Thanks.
Mh, what do you mean?
If you followed the entire series, you will know how to add custom fields to the comment section, that in my case is a Custom Post Type, and how to let the user fill up those fields.
got ERROR: please fill the required fields (name, email) when testing the comment
Check my source code on GitHub if you have any typo
@@alecaddd Thanks Al, got it :) Hope you have tutorials for extended recent post widget with thumbnails. this is very common but didn't see any tutorials. Thanks, advance :)
helped me lot . from india
Its didnt work for me $args is working properly but $fields array is not working not giving any erro but not displaying inputs.
Check my source code on Github and compare it with yours.
Cheers
Now its worked but how can i pull comment form bottom to other fields i want to name field display top of comment form. Thank you for your attention and for videos you are awesome!
good job bro
Thank you
++++