Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
September 2, 2019 at 8:58 pm #1133122
I have created a new category-artists.php based on the archive.php so I can set a different featured image size for this category only. But I am not able to set the size I don’t see where the featured image is being called in this part of the code
global $posts; $post_ids = array(); foreach($posts as $post) $post_ids[] = $post->ID; if(!empty($post_ids)) { $atts = array( 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 5, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() ) ); $blog = new avia_post_slider($atts); $blog->query_entries(); echo "<div class='entry-content-wrapper'>".$blog->html()."</div>";I see this $blog – new avia_post_slider($atts) where is this being called for. I need set a different featured image size other than the size-portfolio_small its currently set.
Thanks and appreciate it
September 6, 2019 at 8:10 am #1134792Hey pepin,
Thank you for using Enfold.
You have to set the “preview_mode” parameter or attributes of the “avia_post_slider” from “auto” to “custom”, then define the “image_size” value or thumbnail.
'preview_mode' => custom, 'image_size' => 'large',Default image_size value is portfolio.
Best regards,
Ismael -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
