Featured images

Support Area Forums Selfie Featured images

Viewing 8 posts - 1 through 8 (of 8 total)
URL to the page in question: http://foto.tonjebrustuen.no/
  • Author
    Posts
  • #25892
    Tonje Brustuen
    Participant

    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?

    #25901
    Bill Robbins
    Moderator

    Good Morning Tonje,

    Great question. You can remove the featured image for the single view of posts. Here’s how:

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      .single-post .entry-thumbnail img {
      	display: none;
      }
      
    3. Update your settings.

    Have a great week,
    Bill

    #25903
    Tonje Brustuen
    Participant

    Thank you for a swift reply! 🙂

    Is it also possible to change the default size of featurede images?

    #25905
    Bill Robbins
    Moderator

    Glad that helped you out 🙂

    You can change the set size as well with a bit of editing. Here’s how:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose images.php
    3. 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.

    4. 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.
    5. 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

    #25906
    Tonje Brustuen
    Participant

    Thank you, that did the trick! 🙂

    #25908
    Bill Robbins
    Moderator

    Glad that worked too 🙂

    If you need anything else, just let me know.

    #25950
    Tonje Brustuen
    Participant

    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?

    #25951
    Tonje Brustuen
    Participant

    Oh, and one more. How do I change the font color of post title links? It does not seem to work with just h2.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Featured images’ is closed to new replies.