Hello, first of all thank you for developing the amazing plugin.
We have the version of the plugin: 4.8.1
And I have a question to the following point.
How can I change the position of title “Veranstalutngen für Febrauar 2019”
and the search bar?
I saw they are respectively in src/views/modules/bar.php and also in the src/view/list/title-bar.php
I’ve also saw a similar post on the forum before: https://www.ads-software.com/support/topic/how-to-move-page-title-above-tribe-bar/
But somehow after a few months later the location of the files have been changed,
and I am not too sure where I should relocate the files.
Could you please help me? Thank you.
add_filter( 'tribe-events-bar-should-show', '__return_true' );
but don’t work. Where I have to insert? In what file, and what position?
I want a custom page, creating with events bar and the post mansory grid.
Tks for the help.
]]>I load a custom wp query of the events with a shortcode but I can’t find a way to integrate the tribe events bar in it. Here is my code:
function actus_events_list() {
if ( ! class_exists( 'Tribe__Events__Main' ) )
return;
ob_start(); // start buffer
add_filter( 'tribe-events-bar-should-show', '__return_true' );
global $paged;
if( empty( $paged) ) { $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; }
$events = new WP_Query( array(
'post_type' => Tribe__Events__Main::POSTTYPE,
'paged' => $paged,
'posts_per_page' => 9
) ); ?>
<ul class="actus__list">
<?php
while ( $events->have_posts() ) : $events->the_post();
$eventCats = get_the_terms( $events->ID, 'tribe_events_cat' );
$eventStartDate = get_post_meta($events->ID, '_EventStartDate', true);
$eventEndDate = get_post_meta($events->ID, '_EventEndDate', true); ?>
<li>
<a href="<?php echo esc_url(get_the_permalink( $events->ID )); ?>">
<figure>
<?php if ( has_post_thumbnail( $events->ID ) ) :
echo get_the_post_thumbnail( $events->ID, 'full' );
endif; ?>
</figure>
</a>
<div>
<p class="actus__date">
<?php if ( tribe_event_is_multiday( $events->ID ) ) :
echo date( 'd', strtotime( esc_html( $eventStartDate ) ) ) .' '. ( date( 'F', strtotime( esc_html( $eventStartDate ) ) ) == date( 'F', strtotime( esc_html( $eventEndDate ) ) ) ? '>' : date( 'F', strtotime( esc_html( $eventStartDate ) ) ) ) .' '. date_i18n( 'd F Y', strtotime( esc_html( $eventEndDate ) ) );
else :
echo date_i18n( 'd F Y', strtotime( esc_html( $eventStartDate ) ) );
endif; ?>
</p>
<h3><a href="<?php echo esc_url(get_the_permalink( $events->ID )); ?>"><?php echo esc_html( get_the_title() ); ?></a></h3>
<p class="actus__cat">
<?php foreach ( $eventCats as $eventCat ) : ?>
<span><?php echo esc_html( $eventCat->name ); ?></span>
<?php endforeach; ?>
</p>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php $big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $events->max_num_pages
) );
wp_reset_query();
return ob_get_clean();
}
add_shortcode( 'actus_events_list', 'actus_events_list' );
Could you help me?
Thanks!
I’d like to replace the “Events from” search bar in the tribe events bar with a heading, such as “Events Calendar.” We currently have the “View as” dropdown menu on the right side of the events bar, by default, and would like the heading to the placed directly left of that, where the “Events from” calendar picker is shown.
Many thanks.
https://www.ads-software.com/plugins/the-events-calendar/
]]>