Adding month in events list

Home Forums Calendar Products Events Calendar PRO Adding month in events list

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #964835
    marlieinthesouth
    Participant

    Hi,

    I am using events list with image, through a customed code in my function.php :
    /* ADD IMAGE IN EVENT LIST
    ================================================== */
    function custom_widget_featured_image() {
    global $post;
    echo tribe_event_featured_image( $post->ID, ‘thumbnail’ );
    }
    add_action( ‘tribe_events_list_widget_before_the_event_title’, ‘custom_widget_featured_image’ );

    but I would like to add the month next to the date. How can I do this ?

    #965060
    Josh
    Participant

    Hey,

    Thanks for reaching out to us!

    I took a look at our widgets and see that by default they do include the month in the date format. If you’re not seeing this at all, take a look at your settings under the Event Settings > Display tab within the date format section and ensure that your settings look like the following https://cloudup.com/cHMxs1MXj7I.

    Additionally, would you mind providing a live link to the site where you’re experiencing the issue?

    Thanks!

    #965072
    marlieinthesouth
    Participant

    This reply is private.

    #965362
    Josh
    Participant

    Hey Émilie,

    Thanks for following up.

    Ah, it looks like you would like that added to this part of the list template https://cloudup.com/cKve9EXKN5V.

    You can do this by following our Themer’s Guide and copying the views > pro > widgets > modules > single-event.php file into your theme and modifying the “list-date” div to include the month in addition to the day and day number.

    To do this, you can just copy one of the existing spans within that div and ensure you change the format code for the date ( the “D” or “d”) to be the correct one for displaying the month.

    Let me know if this helps.

    Thanks!

    #965567
    marlieinthesouth
    Participant

    This reply is private.

    #965844
    Josh
    Participant

    Hey,

    Thanks for following up and providing the code you’re currently using.

    I took a look at the site and at the source level I’m not seeing the duplicated span that you have in the example. Is the code still active on your site. If so, it may not be placed in the proper place within your theme. Ensure that the file is placed in your theme at the following location:

    tribe-events > pro > widgets > modules > single-event.php

    Let me know if this helps.

    Thanks!

    #967754
    marlieinthesouth
    Participant

    This reply is private.

    #968035
    Josh
    Participant

    Hey Marlie,

    Thanks for following up. Can you post the full template file code as a gist on http://gist.github.com and post it here so I can take a look at it?

    Thanks!

    #968044
    marlieinthesouth
    Participant

    This reply is private.

    #968444
    Josh
    Participant

    Hey,

    Thanks for providing the full code!

    I tested on my local install and noticed a single typo with the added span. Try using this code for that span https://gist.github.com/BeardedGinger/0a1ab86367c4837f75c5.

    Once added, the month became visible in the block for the widget like so https://cloudup.com/ce5FcfAKp_0.

    Let me know if this helps.

    Thanks!

    #968707
    marlieinthesouth
    Participant

    Hi Josh,
    Thanks again!
    It didn’t have worked when I have add the file in my theme at tribe-events > pro > widgets > modules > single-event.php.
    But I have tried with events-calendar-pro > pro > widgets > modules > single-event.php… and it’s fine!!!

    Thank you very much for your help.
    Have a nice day

    #968708
    marlieinthesouth
    Participant

    Hi Josh,
    Thanks again!
    It didn’t have worked when I have add the file in my theme at tribe-events > pro > widgets > modules > single-event.php.
    But I it works when I modify the original file in the plugin.
    I have tried with a folder name events-calendar-pro instead of tribe-events but it doesn’t work neither.

    #968709
    marlieinthesouth
    Participant

    Hi Josh,
    Thanks again!
    It didn’t have worked when I have add the file in my theme at tribe-events > pro > widgets > modules > single-event.php.
    But I it works when I modify the original file in the plugin.
    I have tried with a folder name events-calendar-pro instead of tribe-events but it doesn’t work neither.

    #968945
    Josh
    Participant

    Hey,

    That’s definitely strange. The file structure you’ve stated (tribe-events > pro > widgets > modules > single-event.php) looks right. A couple of suggestions that may help diagnose:

    1. Ensure that this has been added to the appropriate theme folder. Ensure it is within the active theme for your site.
    2. Ensure that the titles of each of the folders is spelled properly without any unintentional misspellings or typos.

    Let me know if this helps.

    Thanks!

    #984305
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Adding month in events list’ is closed to new replies.