Januas

  1. Home
  2. Docs
  3. Januas
  4. Frequently Asked Questions
  5. Display large image instead of the thumbnail on the home page events

Display large image instead of the thumbnail on the home page events

To display large image instead of the thumbnail on the home page events, please do the the following

Please do remember to back-up the files prior to any change.

1) Open wp-content/themes/januas/index.php

2) Around line number 102, you can find:

<?php the_post_thumbnail(‘januas-medium’); ?>

3) Please replace this with:

<?php $event_image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘large’ );?>
<img class=”event_image” src=”<?php echo $event_image[0]?>” width=”306″ height=”306″ alt=”<?php echo januas_get_reduced_title(get_the_title()); ?>”/>

4) Open wp-content/themes/januas/lib/styles/style.css

5) Add the following code to the end of the stylesheet:

.home .event_image {max-width:100% !important;}

6) Save the files.

This is not preferred, as it loads large images for event listing and also it may show shrinked images.

Was this article helpful to you? Yes 1 No