Hi,
is there a css snippet which removes images from pages ?
For posts I found this here in the forum:
.single .big-preview.single-big {
display: none;
}
But this works nor for pages.
I have tons of pages, so a css code would be easier as manually delete the ‘attached’ images from every page.
Cheers
Ralf
Hey ralfakerkhoff,
For pages you would use the class “.page” like this:
.page .big-preview.single-big {
display: none;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hi Mike,
unfortunately this does not work. Images in pages are still displayed.
Example:
Ralf
Found it – this one works:
.page .page-thumb{
display: none!important;
}
Cheers
Ralf
Hi,
I don’t see any images on that page, please see the screenshot in the Private Content area.
Please note that not all images use the class .big-preview.single-big from your example, I was trying to show that the post class .single should be changed to .page for pages.
If you link to a page with images you want removed I can help with some css.
Best regards,
Mike
Hi Mike,
yes, the images are not displayed anymore.
I have added the following css to “quick css”:
.page .page-thumb{
display: none!important;
}
If you have a better suggestion i am curious to know.
BR
Ralf
Hi,
That looks correct to me, do have any pages where it is not working?
Best regards,
Mike
Nope – looks that it works as it should.
Yes, you can close the post.
Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard