Blogger 댓글을 교체하는 방법

구글 블로그의 기본 댓글을 페이스북, 디스커스와 같은 댓글로 변경하는 가장 쉬운 방법.
2 min read

Blogger 댓글을 대체하여 사용할 수 있는 옵션은 Disqus 또는 Facebook 두 가지가 있습니다. Disqus의 경우 버튼을 사용하여 댓글을 로드하거나 스크롤하여 댓글을 로드하는 두 가지 옵션이 있습니다.

Disqus 댓글

disqus 댓글을 활성화하려면 disqus_shortname 또는 Disqus ID를 먼저 추가해야 합니다. 오류가 없도록 Disqus 스크립트에 disqus_shortname = "liveblogger"를 추가했습니다.

아래 코드에서 disqus_shortname으로 표시된 부분을 Disqus ID로 교체하세요.

<!--[ Comment disqus ]-->
<b:includable id='post-commentDisqus'>
  <div class='cmDisqus' id='disqus_thread'>
    ...
      <!--[ Delete tag below to change button style ]-->
      ...

      ...
    ...
  </div>
  <script>/*<![CDATA[*/ var disqus_shortname = "liveblogger"; !function(){ ... }(); function load_Comments(){var e=document.getElementById("disqusshow");e.style.display="none";var t="liveblogger";!function(){ ... }; /*]]>*/</script>
</b:includable>

disqus 댓글을 활성화하려면 아래 코드를 찾아 교체하세요.

<!--[ Blogger Comments ]-->
<b:include cond='data:post.allowComments and data:view.isPost and !data:view.isPreview' data='post' name='threadedComments-modifV3'/>

이 코드로 바꿉니다.

<!--[ Disqus Comments ]-->
<b:include cond='data:post.allowComments and data:view.isPost and !data:view.isPreview' data='post' name='post-commentDisqus'/>

Disqus onScroll 댓글

첫 번째 방법에서 사용자가 댓글 버튼을 눌렀을 때 Disqus 댓글이 활성화된다면, onScroll 기능은 사용자가 페이지의 끝까지 스크롤하면 자동으로 댓글이 표시됩니다.

또한 기본 스크립트의 disqus_shortname 또는 Diqus ID를 자신의 ID로 변경해야 합니다.

<!--[ Comment disqus on-scroll ]-->
<b:includable id='post-commentDisqusScroll'>
  ...
    ...
  ...
        
  <!--[ Disqus script ]-->
  <script>...</script>
  <script>/*<![CDATA[*/ function load_disqus( disqus_shortname ) { ... {load_disqus('liveblogger'); console.log('Disqus loaded.'); }}, false); ... }; /*]]>*/</script>
</b:includable>

활성화 방법은 첫 번째 방법과 동일하며 차이점은 name='post-commentDisqusScroll'를 사용하는 name 속성에만 있습니다. 전체 코드는 다음과 같습니다.

<!--[ Disqus Comments on-Scroll ]-->
<b:include cond='data:post.allowComments and data:view.isPost and !data:view.isPreview' data='post' name='post-commentDisqusScroll'/>

Facebook 댓글

Facebook 댓글은 Disqus보다 활성화하기가 더 쉽습니다. 다른 부분을 변경하지 않고 아래 코드에 표시된 name='post-commentFB' 부분만 변경하면 됩니다.

<!--[ Blogger Comments ]-->
<b:include cond='data:post.allowComments and data:view.isPost and !data:view.isPreview' data='post' name='threadedComments-modifV3'/>

올바른 적용의 예:

<!--[ Blogger Comments ]-->
<b:include cond='data:post.allowComments and data:view.isPost and !data:view.isPreview' data='post' name='threadedComments-modifV3'/>
<!--[ Facebook Comments ]-->
<b:include cond='data:post.allowComments and data:view.isPost and !data:view.isPreview' data='post' name='post-commentFB'/>

You may like these posts

  • Blogger에서 새 페이지를 만드는 방법을 이미 알고 있다고 가정합니다. 먼저 사이트맵이 활성화되려면 2가지 사항을 확인해야 합니다. 설정 사이트 피드로 이동하여 블로그 피드 허용이 전부 허용인지 확인합니다. 각 게시물에 라벨이 있는지 확인합니다. 라벨이 없는 …
  • 최신 업데이트에서는 템플릿 색상을 변경하는 데 문제가 없을 겁니다. Blogger 테마 디자이너에서 모든 색상을 수정할 수 있습니다. 이 기능은 업데이트를 통해 지속적으로 개선될 것이며, 다음 업데이트에서 더 많은 색상과 배경을 커스텀할 수 있도록 노력하겠습니다. 표준 템플릿 템…
  • 표시되는 게시물 수가 일치하지 않음 경우에 따라 홈페이지에 표시되는 게시물 수가 Blogger 설정에 지정된 수보다 적을 때가 있습니다. 먼저 이것이 테마의 버그/오류와 관련이 없음을 확인했습니다. 다른 Blogger 테마에서도 동일한 문제를 찾을 수 있었기 때문입니다. 조사한 결과 이 …
  • Blogger 댓글을 대체하여 사용할 수 있는 옵션은 Disqus 또는 Facebook 두 가지가 있습니다. Disqus의 경우 버튼을 사용하여 댓글을 로드하거나 스크롤하여 댓글을 로드하는 두 가지 옵션이 있습니다. Disqus 댓글 disqus 댓글을 활성화하려면 disqus_sho…
  • 이 기능을 사용하는 것은 매우 쉽습니다. 복사 / 붙여넣기만 하면 됩니다. 분할 게시물의 기본 HTML 코드는 다음과 같습니다. <div id='postSplit'> First page here... <!--nextpage--> Second page here... &…
  • 분할 게시물와 마찬가지로 게시물에 복사 붙여 넣기만 하면 됩니다. 기본적으로 3개의 탭을 사용할 수 있고, 최대 5개의 탭을 추가할 수 있습니다. 다음은 탭 게시물의 기본 코드입니다. <!--[ Active function ]--> <input class='tbIn hid…

1 comment

  1. 3년 전
    댓글창에 대한 글을 검색하다 왔습니다. 구글 블로그에 대한 유용한 글이 많아 큰 도움이 됐습니다.

    이번에 판올림 되며 댓글창이 이상하게 변했습니다. 댓글창에 관해 문의(https://support.google.com/blogger/thread/161403795?hl=en#)도 했지만 뾰족한 방법이 없어 보입니다. 혹시 여기에 관한 좋은 아이디어나 개선할 팁이 있으신지 궁금합니다.