Iklan

How to Add Disqus Comments at Static Pages in Blogger


How to Add Disqus Comments at Static Pages in Blogger


How to Add Disqus Comments at Static Pages in Blogger

Add Disqus to Blogger Static Pages - By default DISQUS only display comments on the post pages only. Sometimes we want to put komenar in all the static pages or static pages specified.

Static pages are pages that aloof and did not go to the archives. As an example:
http://name-yourblog.blogspot.com/p/example-halaman.html

Showing comments DISQUS at all static pages

Log in to Edit Template, to facilitate the search of code that will be edited, find the code disqus_blogger_canonical_homepage_url. Look under that code, that we will edit. There are two alternative ways to show you comment on this static page:

First alternative: by removing the conditional tag. The trick, remove the code marked in red, as in the screenshot.

How to Add Disqus Comments at Static Pages in Blogger


Alternative two: Disable the code to provide comment tag is <! - ...... ->, As in the image below
this.

How to Add Disqus Comments at Static Pages in Blogger



Displaying DISQUS Comments on Specific Pages


That is, the comments will appear on Page Posts and Pages Specific alone. For the other pages remain komentad DISQUS is not in the show.

The way we have to insert a <: b: else /> then add a question PAGE URL. Examples of additional code in the mark blocks:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
    script comment disqus   
<b:else/>
    <b:if cond='data:blog.url == &quot;URL- PAGE-SPECIFIC &quot;'>
                script comment disqus        
    </b:if>
</b:if>

The results are as follows (additional pages like in the picture, which is marked in red).

How to Add Disqus Comments at Static Pages in Blogger

May be useful....


Next
Prev Post
Previous
Next Post

1 comment: