Events Not Showing Up in Footer Widget

Home Forums Calendar Products Events Calendar PRO Events Not Showing Up in Footer Widget

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #973243
    Ryan
    Participant

    All my events are showing up normal, except the footer widget area. It use to work, so I’m assuming it has to do with the update.

    #973256
    Brian
    Member

    Hi,

    Sorry for the issues. I can help out.

    Do you have any custom templates for the widgets in your theme?

    If so they need to be updated to resolve this.

    You need to add to the list-widget.php template the following lines:

    $events_label_plural = tribe_get_event_label_plural();

    $posts = tribe_get_list_widget_events();

    Let me know if that works out for you.

    Thanks

    #973263
    Ryan
    Participant

    Hi Brian,
    I don’t think I have a list-widget.php file, at least I can’t find one. Would it go in the my footer.php file (Below)?

    
    			</div>  <!-- fusion-row -->
    		</div>  <!-- #main -->
    		
    		<?php
    		global $smof_data, $social_icons;
    		
    		if ( strpos( $smof_data['footer_special_effects'], 'footer_sticky' ) !== FALSE) {
    			echo '</div>';
    		}
    		
    		// Get the correct page ID
    		$object_id = get_queried_object_id();
    		if ( ( get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) && is_home() ) ||
    			 ( get_option( 'page_for_posts' ) && is_archive() && ! is_post_type_archive() ) && ! ( is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) || 
    			 ( get_option('page_for_posts' ) && is_search() )
    		) {
    			$c_pageID = get_option('page_for_posts');
    		} else {
    			if ( isset( $object_id ) ) {
    				$c_pageID = $object_id;
    			}
    
    			if ( class_exists( 'Woocommerce' ) ) {
    				if ( is_shop() || 
    					 is_tax( 'product_cat' ) || 
    					 is_tax( 'product_tag' ) 
    				) {
    					$c_pageID = get_option( 'woocommerce_shop_page_id' );
    				}
    			}
    		}
    
    		// Only include the footer
    		if ( ! is_page_template( 'blank.php' ) ) {
    		
    			$footer_parallax_class = '';
    			if ( $smof_data['footer_special_effects'] == 'footer_parallax_effect' ) {
    				$footer_parallax_class = ' fusion-footer-parallax';
    			}
    
    			echo sprintf( '<div class="fusion-footer%s">', $footer_parallax_class );
    
    				// Check if the footer widget area should be displayed
    				if ( ( $smof_data['footer_widgets'] && get_post_meta( $c_pageID, 'pyre_display_footer', true ) != 'no' ) ||
    					 ( ! $smof_data['footer_widgets'] && get_post_meta( $c_pageID, 'pyre_display_footer', true ) == 'yes' ) 
    				) {
    				?>
    					<footer class="fusion-footer-widget-area">
    						<div class="fusion-row">
    							<div class="fusion-columns fusion-columns-<?php echo $smof_data['footer_widgets_columns']; ?> fusion-widget-area">
    
    								<?php
    								// Check the column width based on the amount of columns chosen in Theme Options
    								$column_width = 12 / $smof_data['footer_widgets_columns']; 
    								if( $smof_data['footer_widgets_columns'] == '5' ) {
    									$column_width = 2;
    								}
    
    								// Render as many widget columns as have been chosen in Theme Options
    								for ( $i = 1; $i < 7; $i++ ) {
    									if ( $smof_data['footer_widgets_columns'] >= $i ) {
    										echo sprintf( '<div class="fusion-column col-lg-%s col-md-%s col-sm-%s">', $column_width, $column_width, $column_width );
    
    											if (  function_exists( 'dynamic_sidebar' ) && 
    												 dynamic_sidebar( sprintf( 'Footer Widget %s', $i ) )
    											) {
    												// All is good, dynamic_sidebar() already called the rendering
    											}
    										echo '</div>';
    									}
    								}
    								?>
    
    								<div class="fusion-clearfix"></div>
    							</div> <!-- fusion-columns -->
    						</div> <!-- fusion-row -->
    					</footer> <!-- fusion-footer-area -->
    				<?php 
    				} // end footer wigets check
    
    				// Check if the footer copyright area should be displayed
    				if ( ( $smof_data['footer_copyright'] && get_post_meta( $c_pageID, 'pyre_display_copyright', true ) != 'no' ) ||
    					  ( ! $smof_data['footer_copyright'] && get_post_meta( $c_pageID, 'pyre_display_copyright', true ) == 'yes' ) 
    				) {
    				?>
    					<footer id="footer" class="fusion-footer-copyright-area">
    						<div class="fusion-row">
    							<div class="fusion-copyright-content">
    
    								<?php 
    								/**
    								 * avada_footer_copyright_content hook
    								 *
    								 * @hooked avada_render_footer_copyright_notice - 10 (outputs the HTML for the Theme Options footer copyright text)
    								 * @hooked avada_render_footer_social_icons - 15 (outputs the HTML for the footer social icons)
    								 */						
    								do_action( 'avada_footer_copyright_content' ); 
    								?>
    
    							</div> <!-- fusion-fusion-copyright-area-content -->
    						</div> <!-- fusion-row -->
    					</footer> <!-- #footer -->
    				</div> <!-- fusion-footer -->
    			<?php
    			} // end footer copyright area check
    		} // end is not blank page check
    		?>
    		</div> <!-- wrapper -->
    
    		<?php 
    		// Check if boxed side header layout is used; if so close the #boxed-wrapper container
    		if ( ( ( $smof_data['layout'] == 'Boxed' && get_post_meta( $c_pageID, 'pyre_page_bg_layout', true ) == 'default' ) || get_post_meta( $c_pageID, 'pyre_page_bg_layout', true ) == 'boxed' ) && 
    			 $smof_data['header_position'] != 'Top' 
    		
    		) { 
    		?>
    			</div> <!-- #boxed-wrapper -->
    		<?php
    		}
    
    		?>
    
    		<!-- W3TC-include-js-head -->
    
    		<?php 
    		wp_footer();
    
    		// Echo the scripts added to the "before </body>" field in Theme Options
    		echo $smof_data['space_body']; 
    		?>
    
    		<!--[if lte IE 8]>
    			<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/assets/js/respond.js"></script>
    		<![endif]-->
    	</body>
    </html>
    
    #973277
    Brian
    Member

    No I do not think it would go in that file.

    And the list-widget.php would be in the yourtheme/tribe-events/pro/widgets/ directory.

    However, I took a look at your site and see you are running Pro 3.9.3

    Please update to Pro 3.10 either by automatic update or by downloading it from your account here and manually uploading.

    Let me know once the update is complete if it is working.

    Thanks

    #973558
    healthcommcapacity
    Participant

    Hi – I was having the same issue. I previously had created a list-widget.php in my Child theme, so I updated that file with your code and put it right at the top under the <?php is that correct? It’s working, so I just wanted to double check the placement of that code.

    Thanks!

    #973632
    Brian
    Member

    Hi healthcommcapacity,

    Yep that should work where you placed it.

    Cheers

    #986240
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Events Not Showing Up in Footer Widget’ is closed to new replies.