Venue and city in mini calendar widget

Home Forums Calendar Products Events Calendar PRO Venue and city in mini calendar widget

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1162632
    Alessandro
    Participant

    Hello, I use Mini Calendar widget in the sidebar, but it don’t show venue and city, can you help me please?

    #1163043
    Andras
    Keymaster

    Hi 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,
    Andras

    #1163149
    Alessandro
    Participant

    hi, i made the 2 option, because i can’t make the 1 option, but it doesn’t work. Look the screen… HELP ME PLEASE!!!!

    #1163596
    Andras
    Keymaster

    Hello 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/f01490135bb50b2de8eb4ac3923fc2bb

    Place 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,
    Andras

    #1163827
    Alessandro
    Participant

    It doesn’t work…. 🙁

    #1163828
    Alessandro
    Participant

    Can we talk more fast on a chat? Facebook, Skype, etc…?

    #1164199
    Andras
    Keymaster

    Ciao 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.php

    You 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,
    Andras

    #1164416
    Alessandro
    Participant

    hi 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?

    #1164574
    Andras
    Keymaster

    Hello 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,
    Andras

    #1165997
    Alessandro
    Participant

    hello, 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…

    #1166138
    Andras
    Keymaster

    Ciao 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,
    Andras

    #1166279
    Alessandro
    Participant

    hi, 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

    #1166606
    Andras
    Keymaster

    Hi 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,
    Andras

    #1166695
    Alessandro
    Participant

    Ok, 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

    #1167105
    Andras
    Keymaster

    In 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

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘Venue and city in mini calendar widget’ is closed to new replies.