For some unfathomable reasons, DISQUS feels that there is a need to repost the title of your post (if you are using DISQUS), your whole post itself and hide them with ‘display:none’ visibility properties. Unsuspecting users won’t be able to see it live on their blogs since ‘display:none’ visibility property not only hides elements but it will also not take up any visible space. Users can only see those cleverly hidden elements if they view their page sources live with their browsers. Here’s an example that I have taken by random from a blog that uses DISQUS.
<div id='disqus_post_title' style='display:none;'>Saya Kini Menggunakan Disqus</div>
<div id='disqus_post_message' style='display:none;'><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQUirvcPmQR_u8khIW1_3mvhTsst3D1F5blmcHoZSbCz2oJJP7MJtlmJxv0OmBDIXQTIXj-JwhJsdrY5HVpm8vnGtsb8MT_dz_CAtJ50yHx9uVe4GVfkZEeJ68xvqoQGnFCVTlQNzvDYpd/s1600-h/disqus_125.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 125px; height: 125px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQUirvcPmQR_u8khIW1_3mvhTsst3D1F5blmcHoZSbCz2oJJP7MJtlmJxv0OmBDIXQTIXj-JwhJsdrY5HVpm8vnGtsb8MT_dz_CAtJ50yHx9uVe4GVfkZEeJ68xvqoQGnFCVTlQNzvDYpd/s320/disqus_125.jpg" alt="" id="BLOGGER_PHOTO_ID_5345379410399255970" border="0" /></a><br />Bismillah..<br /><br />Saya kini menggunakan Disqus untuk C@hyaImani. Hal ini untuk memudahkan anda meninggalkan komen di blog saya (walapun xdela banyak pun komen. huhu)<br /><br />Saya juga ingin meminta maaf untuk sahabat2 yang ada meninggalkan komen kerana komen2 tersebut terpaksa dipadamkan kerana saya set disqus untuk semua entri samada yang baru ataupun lama.<br /><br />Bagaimana untuk tinggalkan komen? Mudah sahaja.<br /><br />1. Masukkan nama anda dan e-mail di ruangan yang disediakan. (wajib)<br />2. Jika anda ada blog atau laman web, masukkan di ruangan 'Website'<br />3. Masukkan komen di ruangan yang disediakan.<br />4. Klik 'Submit'<br />5. Tunggu sehingga komen anda dipaparkan.<br />6. Selesai! Terima kasih kerana sudi tinggalkan komen (^_^)<br /><br />Jikalau ada salah dan silap, harap tunjuk ajar ya. Terima kasih (@_@)</div>
What is wrong with ‘display:none’?
Search engines frown upon the use of purposely hidden texts and Google for an example specifically said;
If your site is perceived to contain hidden text and links that are deceptive in intent, your site may be removed from the Google index, and will not appear in search results pages. [via Google Webmaster]
Can we remove DISQUS’s ‘disqus_post_title’ and ‘disqus_post_message’ div tags?
I think so. I ran some tests in the last few weeks and found that DISQUS works fine without the ‘disqus_post_title’ and ‘disqus_post_message’ div tags. The following lines were what have been removed during my initial tests;
<div id='disqus_post_title' style='display:none;'><data:post.title/></div>
<div id='disqus_post_message' style='display:none;'><data:post.body/></div>
Feel free to do the same if you want to but it is best that you seek clarifications about the ‘disqus_post_title’ and ‘disqus_post_message’ div tags from DISQUS before removing those div tags from your blog.
0 comments:
Post a Comment