Featured images
URL to the page in question:
http://foto.tonjebrustuen.no/
-
I have a problem with featured images. I would like for featured images to show up on the blog page (http://foto.tonjebrustuen.no/blogg) as well as in category view, but not in single post view. Any tips on how to fix this?
I also want to be able to change the standard size of featured images. Is this possible?
Good Morning Tonje,
Great question. You can remove the featured image for the single view of posts. Here’s how:
- Go to your theme options page and choose the Advanced tab.
- Scroll down to the Custom CSS box and add this:
.single-post .entry-thumbnail img {
display: none;
}
- Update your settings.
Have a great week,
Bill
Thank you for a swift reply! 🙂
Is it also possible to change the default size of featurede images?
Glad that helped you out 🙂
You can change the set size as well with a bit of editing. Here’s how:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose images.php
- Find this line:
add_image_size('full-width', 730, 0, false);
It sets the maximum size of the featured image to be 730 pixels wide with zero as the height (so that any height will work). The false makes the image scale down instead of cropping.
- To change the maximum width, change the 730 to the number of pixels you’d like to have (make sure to leave out the px). To change the maximum height, change the 0 to the number of pixels you’d like to have. If you want the images to crop, change the false to true.
- Save your changes.
That will change any images uploaded after the change. To alter the ones before, you’ll need to install a plugin called Regenerate Thumbnails. It adds a screen in the tools menu where you can resize images already uploaded.
Let me know if it gives you any trouble.
Take care,
Bill
Thank you, that did the trick! 🙂
Glad that worked too 🙂
If you need anything else, just let me know.
Hi again, I seem to need a little more help. 🙂
1. How do I remove the read more tag from all posts?
2. How do I change the background color of single posts?
Oh, and one more. How do I change the font color of post title links? It does not seem to work with just h2.
- The topic ‘Featured images’ is closed to new replies.