如何从网页中删除Disqus页脚 [英] How to Remove Disqus footer from webpage
问题描述
我想删除Disqus插件的页脚。 Disqus工作正常,但页脚看起来有点迭代。
我要删除页脚,以便我只能看到相关的注释。
I want to remove the footer of Disqus plugin. Disqus works fine, but the footer looking a little iterating. I want to remove the footer so that I can only see the relevant comments.
您可以在图像的末尾看到页脚。
You can see the footer at the end of the image.
>
<div class="well">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'destinationcompk'; // required: replace example with your forum shortname
function disqus_config() {
this.callbacks.afterRender.push(function() { alert('clayton') });
}
var disqus_identifier = "image_".concat(12);
var disqus_title = "image_title".concat(12);
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments
</a></noscript>
</div>
我只是想隐藏页脚。
推荐答案
因为新错误使用 iframe
,因此无法应用自定义CSS:
I was under the impression that the new disqus uses an iframe
and therefore custom CSS can't be applied:
http://help.disqus.com/ customer / portal / articles / 526768-introduction-the-new-disqus-and-faq-
,新的Disqus中的定制是不同的,因为我们决定完全重新实现我们的评论嵌入iframe。此iframe托管在disqus.com上,因此,浏览器不会让您的网站使用CSS语句应用样式。
For the most part, customization is different in the new Disqus because we decided to completely re-implement our commenting embed inside of an iframe. This iframe is hosted on disqus.com and, as such, the browser won't let your website apply styles to it using CSS statements.
这篇关于如何从网页中删除Disqus页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!