Answer the question
In order to leave comments, you need to log in
How to set maximum width for images in Disqus comments?
There are disqus comments on the site, when a user posts a picture - it is displayed in full size, I want to make the maximum width 300px.
Tried like this:
.post-content .post-body .media-container img {
max-width: 300px !important;
}
function disqus_config() {
this.callbacks.afterRender = [function() {
// your code here
}];
}
Answer the question
In order to leave comments, you need to log in
Why such nesting?) Let's say you have discuss in the .comments container. Then simply write:
.comments img {
max-width: 300px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question