Specific default month view and dropdown menus

Home Forums Calendar Products Events Calendar PRO Specific default month view and dropdown menus

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1230830
    Ernesto
    Participant

    Hi,

    I’m preparing a site for a Cultural Festival that will start in a couple of months, hope you can help me with those two questions:

    1. I’d like a specific month to appear by default in the month view and, actually, whenever you change from view, view the events from the day the festival starts and not from today. Is there a way to setup that?

    2. I’d like that, instead of having a search field where you have to input the text, to have dropdown menus that can display venues or categories, select them and go to the desired filter/view. Is that possible?

    Thanks for your help,

    #1231785
    Andras
    Keymaster

    Hi Ernesto,

    Thanks for using our plugins and welcome to the forums!

    For your first question try this snippet. Just paste it in your functions.php file ( without the opening <php tag):

    https://gist.github.com/andrasguseo/6df4bf6911608bcc33d2deb9c795a37f

    For your second question our <span class=”paragraph”>Filter Bar</span> product would be the easiest solution, which I see you just purchased. 🙂 If you would want to do that in the search bar, that would require custom coding which we are limited in supporting.

    I hope these answer your questions. Let me know if you need anything else.

    Cheers,
    Andras

    #1232007
    Ernesto
    Participant

    Thanks! I’ll try the snippet and let you know if I run into any problem… I’m testing the Filter Bar product and adjusting it, it seems it will work for what I’m doing.

    Best,
    Ernesto Bañuelos

    #1232010
    Ernesto
    Participant

    Where is the functions.php file placed? is it the one of the theme I need to edit? I only found a functions.php file on the deprecated folder from the events calendar plugin

    Thanks,
    Ernesto Bañuelos

    • This reply was modified 9 years, 3 months ago by Ernesto.
    #1232777
    Andras
    Keymaster

    Hi Ernesto,

    Good to hear you are making progress with Filterbar. :thumbsup:

    The functions.php file should be located in the folder of your theme / child theme. Usually you can edit it if you go to Appearance  > Editor then look for the file on the right side. Check this screenshot for reference.

    Cloudup didrnvh0kk4

    If you don’t yet have a functions.php file, then simply create one in your theme folder (wp-content/themes/[your-theme-name]. In this case don’t forget to add the opening <?php tag in the very beginning of the file.

    And it is recommended to use a child theme, so your modifications don’t get lost with a parent theme update.

    Let me know if you need anything else.

    Cheers,
    Andras

    #1238549
    Ernesto
    Participant

    Hi András!!

    The fix has been working smoothly. Thanks a lot. but now I have a new request from the client and I hope you can guide me through it: they want a specific month to be displayed in the month view while the festival starts. is it possible?

    Thanks,
    Ernesto Bañuelos

    #1239757
    Andras
    Keymaster

    Ah, these clients… 😉

    I have updated the snippet, here it is again. Now in month view it’s going to jump to the month you set in line 28. Otherwise the first upcoming event.

    https://gist.github.com/andrasguseo/6df4bf6911608bcc33d2deb9c795a37f

    Does this solve it?

    Andras

    #1239825
    Ernesto
    Participant

    Dude!!! you rock!!! this is it!

    Thanks a lot for your help

    #1241992
    Andras
    Keymaster

    Hi Ernesto,

    Super stoked to hear that helped!

    Since this looks to be resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.

    Cheers,
    Andras

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/plugin/the-events-calendar/reviews/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

     

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Specific default month view and dropdown menus’ is closed to new replies.