• Resolved MC-land

    (@michaeliresource)


    Hi
    Great plugin, although I have used the code provided to change the image sizes in the timeline view, when you click read more to go into single announcement view, it still displays a 153×155 image.
    As im stretching that image 100% width I would need it to display the full sized version.

    Any ideas?

    https://www.ads-software.com/plugins/timeline-express/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Evan Herman

    (@eherman24)

    I will have to check to see if the filter effects the image on the single template page.

    But in the meantime if the filter isn’t altering the image on the single announcement page, you may need to create a single template of your own to override the default. There are instructions in the readme on how to create your own custom template to override the default.

    Evan

    Thread Starter MC-land

    (@michaeliresource)

    Is there a tag to bring in the image? at the moment its brought in with <?php the_content ?>

    If I can locate where the image code is located then I can isolate and create a custom template.

    Thanks

    Plugin Author Evan Herman

    (@eherman24)

    The image is assigned to the post as post meta. It shouldn’t be assigned to the post content unless you’ve specifically inserted the image to your content.

    Thanks,
    Evan

    Thread Starter MC-land

    (@michaeliresource)

    Can I not specify the size in this line here?

    if ( $announcement_image_id ) { $announcement_header_image = wp_get_attachment_image_src( $announcement_image_id[0] , ‘timeline-express-announcement-header’) $custom_content .= ‘<img class=”announcement-banner-image” src=”‘ . esc_url ( $announcement_header_image[0] ) . ‘” alt=”‘ . get_the_title( $post->ID ) . ‘”>’;
    }

    Plugin Author Evan Herman

    (@eherman24)

    No I don’t think so because that function is getting the URL of the specified image size which you used to insert into the announcement. Regardless of the class or size specified it will always pull the URL of whatever size you specified.

    Evan

    Plugin Author Evan Herman

    (@eherman24)

    Closing this thread due to inactivity.

    Evan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘announcement image size in single view’ is closed to new replies.