Geordie

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Customising the header row in the month and week views #1353445
    Geordie
    Participant

    hi Victor

    Sorry for the delay in replying – was in the process of taking the site live.

    This worked – THANKS!

    The only confusing thing was that you cannot actually “remove any color assigned to the Calendar Table Color”. If you delete the color, it automatically inserts the default color hex code. I wasn’t sure that this would work because of the default color but thankfully it did.

    Thanks again.

    in reply to: Customising the header row in the month and week views #1349614
    Geordie
    Participant

    Hi Victor

    I have added the various
    .tribe-events-calendar thead th
    .tribe-events-grid .tribe-grid-header .tribe-grid-content-wrap .column
    .tribe-grid-header

    to the stylesheet but I think it easier to explain the issue through screen shots.

    Month Week normal.png is a screen shot of changing the Calendar Table Color. You will see that this does not affect the day names. It only affects the day number header and the day itself.
    Month Header with style (no important) – Day names background changed in the style sheet. You will see that the standard background colour takes preference and the style.css is ignored.

    Week Header with style (important) – !important added to the style.css style (fixed the month day name problem) but this now overrides the .tribe-week-today.

    Month Week PHP Code – This is the section of the code that causes the issue.

    Hope this helps clarify things

    in reply to: Customising the header row in the month and week views #1347892
    Geordie
    Participant

    Hi Victor

    Thanks for responding.

    I have used the custom templates and these work well.

    The issue is that the function in Month_Week_View.php in /src/Tribe/Customizer overrides any style that is set for ““tribe-events-calendar thead th” but there is no place in the Events Calendar section of the Word Press Customizer to set a colour for the table heading.

    I suppose that I am saying that there appears to be a bug in the code. This section either needs to be removed from Month_Week_View.php OR it needs to be added to the front end Customizer.

    I hope this makes sense?

    The bottom line is that I would like to know if there is a way to set the background colour for tribe-events-calendar .thead th without affecting .tribe-week-today.

    As per my original post, I have achieved this by deleting the lines in /src/Tribe/Customizer/Month_Week_View.php but this will obviously be overwritten when the next upgrade comes through.

Viewing 3 posts - 1 through 3 (of 3 total)