Comment box for blogger

gayan kalhara

Member
Nov 22, 2007
7,060
48
0
as i know machan dat can't be replaced properly

go for such kinda blog template

dats y i used Wordpress. its 1000tyms easier, optional,customizable, speed and beautiful rather than blogger

if you need a professional kinda blog go for wordpress.org (not .com )
 

beam_tech

Well-known member
  • Oct 13, 2017
    7,915
    14,315
    113
    වැලිවේරිය
    මේ ටික බලපන් ඉස්සර use කරපු set එකක්
    JavaScript:
    <div id="disqus_thread"></div>
    <script>
        var disqus_config = function () {
            this.page.url = window.location.href;
            this.page.identifier = document.title;
        };
        (function() {
            var d = document, s = d.createElement('script');
            s.src = 'https://YOUR-DISQUS-SHORTNAME.disqus.com/embed.js';
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
        })();
    </script>
    <noscript>Please enable JavaScript to view the comments.</noscript>
    JavaScript:
    <style>
    #custom-comments {
      border: 1px solid #ccc;
      padding: 15px;
      border-radius: 8px;
      margin-top: 25px;
    }
    #custom-comments h3 {
      margin-bottom: 10px;
    }
    #custom-comments input,
    #custom-comments textarea {
      width: 100%;
      padding: 8px;
      margin: 6px 0;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
    #custom-comments button {
      background: #3498db;
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
    }
    #custom-comments button:hover {
      background: #2980b9;
    }
    </style>
    
    <div id="custom-comments">
      <h3>Leave a Comment</h3>
      <form action="https://formspree.io/f/YOUR-FORM-ID" method="POST">
        <input type="text" name="name" placeholder="Your Name" required>
        <input type="email" name="email" placeholder="Your Email" required>
        <textarea name="message" rows="5" placeholder="Your Comment" required></textarea>
        <button type="submit">Post Comment</button>
      </form>
    </div>