Part 46 - WordPress Theme Development - Comment Section - PART 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 36

  • @umbertomartire5587
    @umbertomartire5587 7 ปีที่แล้ว +2

    Simple, fast professional and functional. Congratulations great work!
    Thanks for sharing

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว +1

      Thank you so much

  • @mellowcatxx
    @mellowcatxx 5 ปีที่แล้ว

    These videos are awesome. I really appreciate that you go into detail on each step!

  • @solocoder7530
    @solocoder7530 3 ปีที่แล้ว

    Thanks, This is exactly what I am looking for.

  • @fazlayrabbi2204
    @fazlayrabbi2204 7 ปีที่แล้ว +1

    Good Job..Your Tutorials Are Really So Awesome..

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Thank you so much :D

  • @markwaters5964
    @markwaters5964 8 ปีที่แล้ว +2

    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.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      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

    • @markwaters5964
      @markwaters5964 8 ปีที่แล้ว +1

      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.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      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.

    • @markwaters5964
      @markwaters5964 8 ปีที่แล้ว +1

      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.

  • @JeremyRivera
    @JeremyRivera 5 ปีที่แล้ว +1

    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??

    • @alecaddd
      @alecaddd  5 ปีที่แล้ว +1

      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`

    • @min11benja
      @min11benja 5 ปีที่แล้ว

      @@alecaddd thank you, i been looking everywhere for this but some how over looked the comments only ... Awesome guide

  • @makemychance5977
    @makemychance5977 5 ปีที่แล้ว

    Hey bro can i change admin says on comment

  • @hazara-encyclopedia
    @hazara-encyclopedia 3 ปีที่แล้ว

    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

  • @lennoxbrown8480
    @lennoxbrown8480 6 ปีที่แล้ว

    good work bro,
    i have a question, how do you place the comment form on top of the comments?

  • @brada3827
    @brada3827 8 ปีที่แล้ว +2

    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

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +2

      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

  • @ArifBillahOnGoogle
    @ArifBillahOnGoogle 8 ปีที่แล้ว

    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.

  • @jackoftraes2122
    @jackoftraes2122 5 ปีที่แล้ว

    **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.

  • @abdussattarmolla
    @abdussattarmolla 2 ปีที่แล้ว

    That's Awesome

  • @Unknown-zi3uj
    @Unknown-zi3uj 8 ปีที่แล้ว

    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!

    • @mattcarter501
      @mattcarter501 7 ปีที่แล้ว

      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' );

  • @umma_entertainment3603
    @umma_entertainment3603 7 ปีที่แล้ว

    could you tell me ?
    how to add extra comment filed and dynamic that.
    Thanks.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      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.

  • @rayjenscode3501
    @rayjenscode3501 6 ปีที่แล้ว +1

    got ERROR: please fill the required fields (name, email) when testing the comment

    • @alecaddd
      @alecaddd  6 ปีที่แล้ว

      Check my source code on GitHub if you have any typo

    • @rayjenscode3501
      @rayjenscode3501 6 ปีที่แล้ว

      @@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 :)

  • @TheUnOriginalsAdda
    @TheUnOriginalsAdda 5 ปีที่แล้ว

    helped me lot . from india

  • @cagrioz9798
    @cagrioz9798 7 ปีที่แล้ว

    Its didnt work for me $args is working properly but $fields array is not working not giving any erro but not displaying inputs.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Check my source code on Github and compare it with yours.
      Cheers

    • @cagrioz9798
      @cagrioz9798 7 ปีที่แล้ว

      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!

  • @KamyarIT
    @KamyarIT 8 ปีที่แล้ว +1

    good job bro

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +1

      Thank you

  • @ВолодимирДжичко
    @ВолодимирДжичко 4 ปีที่แล้ว

    ++++