You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Disqus to power the comment system for our AMP-based Jekyll theme. However, Disqus is showing unwanted ads on our website that we do not have control over. We want to hide these ads with CSS.
Steps to reproduce
Visit any page with Disqus comments on our website.
Scroll down to the comment section and observe the ads.
Expected behavior
We expect to see only the comments and no ads.
Actual behavior
We see ads above and below the comments.
Possible solution
We can hide the ads iframes with CSS by using the following selector:
iframe[src*="ads-iframe"] {
display: none;
}
Tasks
Edit the CSS style sheet to hide the ads iframes with the selector above.
Test the website on different browsers and devices to ensure the ads are hidden.
Commit and push the changes to the GitHub repository.
The text was updated successfully, but these errors were encountered:
This commit updates the README file in this repository
In addition, the following changes were made to
https://gitlab.com/chriskyfung/disqus-amp/-/blob/master/public/index.html
- Updated CSS selector from `iframe:not(iframe[src])` to
`iframe[src*="ads-iframe"]`
- Fixed iframe oversize issue by passing `document.body.offsetHeight`
instead of `msg.data.height`
Fixes: Issue #46
Description
We are using Disqus to power the comment system for our AMP-based Jekyll theme. However, Disqus is showing unwanted ads on our website that we do not have control over. We want to hide these ads with CSS.
Steps to reproduce
Expected behavior
We expect to see only the comments and no ads.
Actual behavior
We see ads above and below the comments.
Possible solution
We can hide the ads iframes with CSS by using the following selector:
Tasks
The text was updated successfully, but these errors were encountered: