Home › Forums › Calendar Products › Events Calendar PRO › Venue and city in mini calendar widget
- This topic has 17 replies, 3 voices, and was last updated 9 years, 7 months ago by
Alessandro.
-
AuthorPosts
-
September 11, 2016 at 6:56 pm #1162632
Alessandro
ParticipantHello, I use Mini Calendar widget in the sidebar, but it don’t show venue and city, can you help me please?
September 12, 2016 at 3:30 pm #1163043Andras
KeymasterHi Alessandro,
Thanks for reaching out!
Interestingly the venue for the widget is in the code but it doesn’t show. I will discuss this internally.
You still have 2 options though.
Option #1: you can user the Event List widget in which you can choose what details you want to show to the visitors, including the venue.
Option #2: you will need to do a bit of customization. Here’s what you need to do:
Take this file: wp-content\plugins\events-calendar-pro\src\views\pro\widgets\modules\single-event.php
Make a copy here: wp-content\themes\{your-child-theme}\tribe-events\pro\widgets\modules\single-event.php
Open it for editing.
From around line 64 you will see a whole bunch of these kind of lines:
<?php if ( isset( $venue ) && $venue && tribe_get_venue() != '' ): ?>You will need to remove the first 2 items from the statement like this:
<?php if ( tribe_get_venue() != '' ): ?>Do this for all the details that you want to show in your calendar widget.
Let me know if this helps.
Cheers,
AndrasSeptember 12, 2016 at 6:32 pm #1163149Alessandro
Participanthi, i made the 2 option, because i can’t make the 1 option, but it doesn’t work. Look the screen… HELP ME PLEASE!!!!
September 13, 2016 at 1:31 pm #1163596Andras
KeymasterHello Alessandro,
Non disperate! Sono qui per aiutare. 🙂
I have created the custom single-event.php file for you. You can download / copy it from here:
https://gist.github.com/andrasguseo/f01490135bb50b2de8eb4ac3923fc2bbPlace the file in this folder:
wp-content\themes\{your-child-theme}\tribe-events\pro\widgets\modules\single-event.php
Let me know if this helps, I’ll be here waiting.
Ciao,
AndrasSeptember 14, 2016 at 12:45 am #1163827Alessandro
ParticipantIt doesn’t work…. 🙁
September 14, 2016 at 12:46 am #1163828Alessandro
ParticipantCan we talk more fast on a chat? Facebook, Skype, etc…?
September 14, 2016 at 1:28 pm #1164199Andras
KeymasterCiao Alessandro
I’m sorry that didn’t work out.
I’m really sorry, but based on our terms and conditions:
“All support is provided via our forums; there is no live chat, phone support or email support available.”
Could you check that you switch to a default theme like twentysixteen, place that new single-event.php file in the appropriate folder and check if it works there? This would help us eliminate a conflict with the theme you are using.
With twentysixteen, this is where you need to copy the file:
wp-content\themes\twentysixteen\tribe-events\pro\widgets\modules\single-event.phpYou could also switch off all plugins, except for the Modern Tribe ones. This will help eliminate any conflicting plugins.
Could you please share your system information with me in a private reply?
Here’s a handy guide how you can do that:
https://theeventscalendar.com/knowledgebase/sharing-sys-info/I understand this process can take a while, but let me assure you that I will try to help you fix this to the best of my knowledge.
Cheers,
AndrasSeptember 14, 2016 at 8:38 pm #1164416Alessandro
Participanthi Andras, i can’t switch twentysixteen theme… sorry but why you edit single-event.php? I want show venue and city in mini calendar widget, should not be edited file mini-calendar-widget.php ?
Can we use a css code?September 15, 2016 at 7:29 am #1164574Andras
KeymasterHello again,
Our plugins have a clear but complex file structure. In order to get the venue to show, the wp-content\plugins\events-calendar-pro\src\views\pro\widgets\modules\single-event.php needs to be overridden with a modified version. At the end, this file is being inserted into mini-calendar-widget.php.
It would be crucial to try this out in a default theme, because this is the only was to eliminate the possibility of a theme conflict. Maybe the theme you are using overrides something, and as long as your theme is switched on, we cannot find out. Without this I’m afraid I will not be able to help you further.
CSS code modification would not help here, because the venue does not appear in the end code. That is why the single-event.php needs to be overridden.
I hope this clarifies.
I don’t know the reasons why you cannot switch to twentysixteen, but maybe these ideas will help:
- Install twentysixteen. Put the single-event.php override in place. Install a maintenance mode plugin and switch it on during a time when your site is less visited. (3am? 🙂 ) Then switch to twentysixteen, put the widget in place and test it. Then switch back to your theme and disable maintenance mode. This shouldn’t take longer that 15-20 minutes at most.
- Create a development site, basically you can copy your site to a local install or a subdomain or a new domain and test it there, so your visitors will not see a thing. This article can help you with moving / copying to a new location.
Cheers,
AndrasSeptember 19, 2016 at 11:26 am #1165997Alessandro
Participanthello, I solved using the widget ” Event List “. But now I want hide the date under the title and show only the time, is possible? Moreover, the second event appears with an incorrect layout, in fact is too otherwise attaches them to the separation line. Could you tell me how to correct the mistake? Thank you
ps look the screen…
September 19, 2016 at 3:23 pm #1166138Andras
KeymasterCiao Alessandro,
You can achieve that via customizing / overriding this file:
wp-content\plugins\the-events-calendar\src\views\widgets\list-widget.php
There is a detailed description at the beginning of the file on how you can create an override.
You will need to modify around line 56 which handles the showing of the date and time. And I think you will need to use this function instead:
https://theeventscalendar.com/function/tribe_get_start_time/
This should get you started. Let me know if that helps.
Cheers,
AndrasSeptember 20, 2016 at 1:03 am #1166279Alessandro
Participanthi, I don’t want to change all widget, but only the widget in the side bar, because i use it also in other part of my siteweb. For this I thought a change with css, is possible? IF is possible, can you write me the code? TNX
September 20, 2016 at 12:40 pm #1166606Andras
KeymasterHi Alessandro,
Unfortunately it is not possible to easily do it with CSS, as the whole date & start time in the widget is handled together as one object. Only part of it cannot be hidden with CSS.
It might be possible to customize the plugin in a way that on some pages it looks like this, on some other pages it looks like that. However we are limited in doing that kind of customization work within the scope of support, I’m sorry. I can share with you this list of developers, who could help you out and who are not affiliated with us. They might be able to help you out with this.
https://theeventscalendar.com/knowledgebase/find-a-customizer/
Cheers,
AndrasSeptember 20, 2016 at 3:54 pm #1166695Alessandro
ParticipantOk, but for the layout of the second event? it is too otherwise attaches them to the separation line. Could you tell me how to correct the mistake? Thank you
September 21, 2016 at 1:01 pm #1167105Andras
KeymasterIn this file wp-content/themes/Avada/style.css
there is this declaration:
.tribe-events-adv-list-widget *:nth-child(2) .tribe-mini-calendar-event {
padding-top: 0;
}I don’t quite know why Avada does that.
Either you can remove that declaration from that file, or better, overwrite it in the child theme style.css file like this:
.tribe-events-adv-list-widget *:nth-child(2) .tribe-mini-calendar-event {
padding-top: 20px !important;
}
I hope this helps. Let me know.Cheers,
Andras -
AuthorPosts
- The topic ‘Venue and city in mini calendar widget’ is closed to new replies.
