Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #846194

    On this page List view from Events Calendar.
    I am trying to change the featured image (see second post) from ‘full’ or ‘large’ to ‘entry_without_sidebar’

    I tried al methods I could find like cardinalacres in this post:

    Did not work so finally when I found this post:
    I added this code to functions.php

    add_action('after_setup_theme', function() {
        if(is_child_theme()) remove_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2);
    add_action('tribe_events_template', 'avia_events_template_paths_mod', 10, 2);
    function avia_events_template_paths_mod($file, $template)
        $redirect = array('default-template.php', 'single-event.php');
        if(in_array($template, $redirect))
            $file = get_stylesheet_directory() . "/tribe-events/views/".$template;
        return $file;

    And copied default-template.php and single-events.php file inside the tribe-events/views folder.

    However, in these files I cannot find the code to change the size of the featured image in list view. So what am I missing/ doing wrong?
    Thanks in advance.


    Hey ariane1001,

    In your default template.php page, you might see this code:

    $avia_config['size'] = avia_layout_class( 'main' , false) == 'fullsize' ? 'entry_without_sidebar' : 'entry_with_sidebar';

    try replacing it with:

    $avia_config['size'] = 'entry_without_sidebar';

    Hope this helps.

    Best regards,


    Hi Nikko,

    In default-template.php there is no such code as
    $avia_config['size'] = avia_layout_class( 'main' , false) == 'fullsize' ? 'entry_without_sidebar' : 'entry_with_sidebar';
    So I won’t be able to change it.

    All code in default-template.php is below. You can see there is no $avia_config[‘size’]

    Also I don’t believe the page is using default-template.php despite of the code in functions.php (see the beginning of my question) because I can’t find any of the code in the source of the page.

    I really would appreciate if you have a solution for this.

    Hope to hear from you,
    Cheers, Ariane

    global $avia_config;
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 $title = tribe_is_month() ? __('Calendar of Events', 'avia_framework') : tribe_get_events_title(false);
     	 $args = array('title'=> $title, 'link'=>'');
     	 if( !is_singular() || get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title($args);
     	 do_action( 'ava_after_main_title' );
    		<div class='container_wrap container_wrap_first main_color fullsize'>
    			<div class='container'>
    				<main class='template-page template-event-page content av-content-full units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
    					 <div id="tribe-events-pg-template">
    					</div> <!-- #tribe-events-pg-template -->
    				<!--end content-->
    			</div><!--end container-->
    		</div><!-- close default .container_wrap element -->
    <?php get_footer(); ?>
    • This reply was modified 2 years, 8 months ago by  ariane1001.

    UPDATE: problem solved:

    I managed to get the right image size in list view by using the following shortcode in the page:
    [ecs-list-events thumb=’true’ thumbsize=’entry_without_sidebar’]

    Just to inform: The page is not using default-template.php despite of the code in functions.php, probably because of the shortcode?



    Hi Ariane,

    Glad you got it working for you! :)

    If you need further assistance please let us know.
    Best regards,

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

You must be logged in to reply to this topic.