Textbook Theme – change opacity of featured image
-
Hi! I am interested in using the Textbook theme for one of my new sites. The problem is I would like the featured image on each post to be at normal opacity, so the picture can be seen clearly, not at the gradient it’s set at by default. Is there any CSS for this please? I’d appreciate your help, many thanks in advance.
Leona -
-
I having created the site yet, I’m hoping to use Textbook when I do. Do you have the CSS code I need? Many thanks.
-
Hi @leonazombie
Are you referring to the white gradient on these images? (Look at the picture below)

-
Hi wpx2, yes that is exactly what I mean. I want the pictures to be clear, normal. Is that possible? Hope so! Thanks :)
-
Hey there,
It looks like you can remove the gradient from the top of the image however the way the image is set up by default it only begins after the text itself ends and doesn’t span the entire container. The text actually has a white background that doesn’t seem to be able to be removed so after removing the gradient overlay you basically end up with this: http://prntscr.com/khihp0.
Hope this helps,
Cheers
-
Hi @leonazombie
Yes it is very possible to remove the white gradient from the top of the images. However, the white background of the text will remain, because the text HTML tag is above the image HTML tag. It is as well possible to remove the text background, but the design will look unpleasant to the users.
Use the following custom CSS codes to remove the white gradient:
.card .post-thumbnail:before {display: none !important} .card .entry-title a { padding: 12.5px; } .card.has-post-thumbnail .entry-title a { padding-bottom: 3px; }The result will be as you see on the image below:

Let me know if you need more customization codes.
-
Many thanks wpx2 and codekymta, I really appreciate your help. I’ll let you know if I need any more advice. Thanks!
- The topic ‘Textbook Theme – change opacity of featured image’ is closed to new replies.