Support for Envato Buyers Forums OldCar homepage image to pull first post image instead of featured image

Viewing 3 reply threads
  • Author
    Posts
    • #3031
      allmetisllc
      Member

      is there a way to code the theme so that it pulls the first post image for the homepage grid instead of the featured image? thanks!

    • #3037

      Yes, but it’s not a good solution, because if the first image is very large, the page loading will be slow down.
      If you really want to do that, you need to edit post-grid.php, find the following code

      <a href="<?php the_permalink();?>"><?php the_post_thumbnail('fluid_thumbnail',array('alt'=>esc_attr(get_the_title()),'title'=>esc_attr(get_the_title()),'class'=>'scale'));?></a>

      Replace it to:

      echo van_auto_thumbnail();

      However, if you changed the code, you have to make the same changes again if you update the theme to next version in the future.

    • #3046
      allmetisllc
      Member

      thanks for the response and suggestion. I was able to try it and worked fine but i was also able to find a way to have the plugin post to both the post and featured image. thanks again.

    • #3058

      It’s my pleasure!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.