We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Setting a custom image size for the featured post #19126
    Carol
    Participant

    Sorry, yes, it did change. This is the new URL: http://walsh2.tbrn-aotw.com/life-lessons/

    in reply to: Setting a custom image size for the featured post #19000
    Carol
    Participant

    Thanks, Tom. It’s getting close! I have all the images pulling in a square image that is the custom image I made. Unfortunately, the featured post is also pulling the custom image instead of the “Full” image. I confirmed I did add this to function.php in my child theme:

    add_filter( ‘wpsp_default_image_size’, function( $size, $settings ) {
    if ( 641 === $settings[‘list_id’] && in_array( ‘featured-column’, get_post_class() ) ) {
    return ‘full’;
    }

    return $size;
    }, 10, 2 );

    in reply to: Setting a custom image size for the featured post #18850
    Carol
    Participant

    Hi,

    I’m still having trouble getting it to work, but I’m wondering if I’m doing it wrong.

    I updated function.php, line 193 in this file: /wp-content/plugins/wp-show-posts/inc/function.php

    I then added the filter to this file: /wp-content/themes/generatepress_child/function.php

    I changed the filter ID to match the list ID.
    I changed line 3 to:

    return ‘full’ (because of space issues, we don’t have our WP create any large images.)

    Then in WP Show Posts settings, I set the image size to 400px W x 400 px H — because we want them to be square.

    I’m seeing the featured image as a square again and wondering where I went wrong.

    Thanks!
    Jennifer

    in reply to: Setting a custom image size for the featured post #18666
    Carol
    Participant

    It might be beyond my expertise, but I’m willing to try. 🙂

    Do you know how long it would take for the update?

    Thanks!!

    in reply to: Setting a custom image size for the featured post #18656
    Carol
    Participant

    I just noticed that the new code does seem to be affecting the image we have in the footer, but not the images on the main News page. Is there a way to limit its effect to just WP Show Posts images?

    Thanks!

    in reply to: Setting a custom image size for the featured post #18631
    Carol
    Participant

    Thanks! Alright, I tried the new code, and it looks like it’s pulling in the full size images for the other posts, instead of the medium one. We would want to pull in the thumbnail so we can crop it to exact dimensions.

    in reply to: Setting a custom image size for the featured post #18594
    Carol
    Participant

    Sure! Here’s the page: http://walsh2.tbrn-aotw.com/news/

    in reply to: Setting a custom image size for the featured post #18585
    Carol
    Participant

    Thanks, I’m having trouble getting this to work. I changed it to the full-size image and pasted it in functions.php of my child theme:

    add_filter( ‘wpsp_default_image_size’, function( $size ) {
    if ( in_array( ‘featured-column’, get_post_class() ) ) {
    return ‘full’;
    }

    return $size;
    } );

    Thanks,
    Jennifer

Viewing 8 posts - 1 through 8 (of 8 total)