Forum Replies Created
-
AuthorPosts
-
October 26, 2017 at 7:47 am in reply to: complement: Open Event Website URLs in new window from monthly calendar view #1369193
Fábio Antonucci
ParticipantShow Victor! that’s what you need. Many thanks for the help!
October 25, 2017 at 9:48 am in reply to: complement: Open Event Website URLs in new window from monthly calendar view #1368766Fábio Antonucci
ParticipantHello Victor, that’s exactly what I need. Many thanks for the feedback!
Actually, I tried to adapt the code used for the monthly view, according to your post.
In the theme’s functions I just added the excerpt
if (! tribe_is_list ()) {
return;
}The following is an integral part:
// Set target ‘_blank’ for tribe_get_event_website_link ()
add_filter (‘tribe_get_event_website_link_target’, function () {return ‘_self’;}, 10);
// Set the event title as label for tribe_get_event_website_link ()
add_filter (‘tribe_get_event_website_link_label’, ‘custom_event_website_link_label’, 10);
function custom_event_website_link_label () {
if (! tribe_is_month ()) {
return;
}
if (! tribe_is_list ()) {
return;
}
$ title = get_the_title ();
return $ title;
}And in the file public_html / sandbox / wp-content / plugins / the-events-calendar / src / views / list / single-featured.php, at the end of the file where you have the button (line 77, 78)
<! – Event Content ->
<? php do_action (‘tribe_events_before_the_content’)?>
<div class = “tribe-events-list-event-description tribe-events-content”>
<? php echo ($ event_website)?>
<?php echo esc_url ($link) ?> “class =” tribe-events-read-more “<? php esc_html_e (‘Find out more’, ‘the-events- calendar ‘)?> & raquo;
</ div> <! – .tribe-events-list-event-description ->
<? php
do_action (‘tribe_events_after_the_content’);Sorry, I’m not a programming expert and I get a little lost. If you can help me with this change, it will be fantastic. Please, I await your return.
October 19, 2017 at 7:15 am in reply to: complement: Open Event Website URLs in new window from monthly calendar view #1365922Fábio Antonucci
ParticipantSorry, please disregard the print attachment sent previously. The correct one is that.
August 4, 2017 at 11:19 am in reply to: Customize background color of the events in calendar view per month #1330886Fábio Antonucci
ParticipantI managed to solve this topic with the The Events Calendar Category Colors wiki plugin.
Thank you! -
AuthorPosts
