show the whole week from morning to evening without having to scroll

Home Forums Calendar Products Events Calendar PRO show the whole week from morning to evening without having to scroll

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #1354901
    Alyson Evans
    Participant

    Hi
    i have been given the code to have the right start time and end time of the day in week view. The morning works well but the evening still defaults to 12 pm.

    so two questions
    1. how can i change it to default end of the day at 10pm?
    2. how can i have the whole day time line showing without having to scroll? (currently shows 7am -4pm and then you have to scroll down the box to see 4pm – 11pm

    eg: https://meditateinsouthampton.org.uk/events/category/city-classes/

    code used ….
    /* start at 7:00 AM */
    .tribe-week-grid-inner-wrap > .tribe-week-grid-block:nth-child(-n+7),
    .tribe-week-grid-hours > div:nth-child(-n+7) {
    display: none;
    }

    /* end at 9:00 PM */
    .tribe-week-grid-inner-wrap > .tribe-week-grid-block:nth-child(10),
    .tribe-week-grid-hours > div:nth-child(10) {
    display: none;
    }

    many thanks

    #1355504

    Hi Alyson,

    Thanks so much for reaching out again!

    In order to change the default end of day time, you can go to Event Settings>General and change the End of day cutoff to 10pm.

    In order to remove the scrolling, you will have to do a theme override.  Here is our Themer’s Guide to get your started: https://theeventscalendar.com/knowledgebase/themers-guide/

    Also, this thread has some customizations that may help to point you in the right direction: https://theeventscalendar.com/support/forums/topic/week-view-with-h2-and-no-scolling/

    Let me know how it goes!

     

    Thanks,

    Jaime

    #1357637
    Alyson Evans
    Participant

    HI
    I have looked at the general settings but it only alows you to pick an am time not pm so i am unable to put in 10pm
    and reason for this?

    i am working on the week view thing and will let you know how it goes

    #1357684

    Hi Alyson,

    Thanks for letting me know.  Another option is to add something like this to your functions.php file.  You will have to modify it to suit the hours you are looking to change:
    // Limit the Calendar hours to 5 - 20, instead of 0 - 23
    function limit_calendar_hours($hours) {
    foreach ($hours as $hour => $formatted) {
    if (4 < $hour and $hour < 21) {
    $limited_hours[$hour]=$formatted;
    }
    }
    return $limited_hours;
    }
    add_filter('tribe_events_week_get_hours', 'limit_calendar_hours');

    Let me know how it goes!

     

    Thanks,

    Jaime

    #1358214
    Alyson Evans
    Participant

    Thanks but this is doing funny things to the site
    i am not sure if i am editing it correctly
    i would like it to show 8am to 10pm

    #1358234

    Hi Alyson,

    I just tested this on my site, and it shows 8am-10pm.  Add this snippet to your functions.php file.
    // Limit the Calendar hours to 8am - 10pm, instead of 0 - 23
    function limit_calendar_hours($hours) {
    foreach ($hours as $hour => $formatted) {
    if (7 < $hour and $hour < 23) {
    $limited_hours[$hour]=$formatted;
    }
    }
    return $limited_hours;
    }
    add_filter('tribe_events_week_get_hours', 'limit_calendar_hours');

    Let me know how it goes!

     

    Thanks,

    Jaime

    #1359381
    Alyson Evans
    Participant

    I have added the code to the function.php for the times

    i have added the code for the weekly calendar to display the whole time zone.
    however there is something odd when you hover over some events it shows a strange white dash (think it should be an arrow)

    please can you have a look https://meditateinsouthampton.org.uk/city-classes/

    #1359481

    Hi Alyson,

    Unfortunately I cannot see the site, as it looks like a maintenance page is up.  Also, which code are you referring to in order to display the whole time zone?  If you cannot provide a link to the site, a screenshot would be fine, as well as the code that you are referring to.

    It is also worth noting our Support Policy here, as we are limited with the way we can assist with customizations.  I’d love to help to lead you in the right direction to achieve the results you are looking for, but I am unable to completely customize the views on your site.

    With that being said, I’d love to help you as much as I can!  So once you provide some more information, I’ll see what I can do!

     

    Thanks,

    Jaime

    #1360192
    Alyson Evans
    Participant

    This reply is private.

    #1360442

    Hi Alyson,

    As per our support policy, I unfortunately cannot log in to your site to take a look.  Let’s try to do some troubleshooting here first, and I’ll try to address all of your issues.

    Under Event Settings>Display, you can set a Default View, as well as a Default Mobile View.  Can you confirm that you have done this and it is still showing the wrong view?  Although you cannot provide me with links (if the site is in maintenance mode), perhaps some screenshots would be helpful.

    In the meantime, please make sure that all of your plugins are up to date.  If you are still having issues, as a first step, let’s try to rule out if there is some type of conflict at play.
    This is usually because of:

    1.    A conflict with another plugin

    2.    A conflict with your WordPress theme

    3.    A template customization for the Events Calendar that requires updating

    When it comes to that type of issue, it is preferable to troubleshoot in a staging environment if you have one.

    A first quick test is to simply temporarily revert back to a default WordPress theme such as twenty-sixteen to see if the issue persists.

    The next step would be to go through our testing for conflicts procedure and let us know what you find out.

    Basically the goal here is to revert back to a bare WordPress installation to see if the problem persists. It also allows us to pinpoint what the cause of the issue is.

    But, before you do that, there are 2 things I would advise:

    1.    Make a backup of your database

    2.    Consider activating a “Maintenance Page” plugin if you are doing this on your live site (to minimize impact on your visitors)

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1360706
    Alyson Evans
    Participant

    Hi Jamie
    i did send a screen shot did you want more?
    none of the above have helped
    is it something in the changes i have added from above in the php?

    i have temporarily removed related events but still it would be better to have the event details at the top of the page

    many thanks

    #1361058

    Hi Alyson,

    I believe what you are seeing may be a result of a conflict with your Enfold, although there may be more at play as well.  When you were testing for conflicts, did you try switching to a default theme?  If so, were the results any different?

    I took a quick look at your Events Settings, and noticed that some of your Display settings are missing.  After doing some digging, I found that this is something that Enfold (your theme) does automatically.  I found a thread on Enfold’s support forum that may help you to get these options back: http://www.kriesi.at/support/topic/default-template-settings-missing-from-event-calendar-pro/

    Please let me know how this goes!

     

    Thanks,

    Jaime

    #1361420
    Alyson Evans
    Participant

    ok i am stuffed then
    i wrote to the theme support and they said:
    Hey thetshed,

    Unfortunately, we can`t offer support for third-party plugins.

    Best regards,
    John Torvik

    #1361421
    Alyson Evans
    Participant

    and the link is to my support ticket !

    #1361481

    Hi Alyson,

    Were you able to bring back the options using the code in the link in my previous reply?  There seemed to be some useful suggestions there.  You can also try switching to a default theme, such as ‘Twentyseventeen’ to confirm if the theme is the issue.  Your Display Settings should contain more options, like this:

    Please let me know if you have any other questions for me on this issue!

     

    Thanks,

    Jaime

Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘show the whole week from morning to evening without having to scroll’ is closed to new replies.