• Resolved Niek Willemarck

    (@niek-willemarck)


    Hi,

    I have following shortcode for my calendar:
    [my_calendar format=”calendar” time=”month” above=”nav” below=”none”]

    When I add an event I don’t want the title to display below the date.
    Is there a way to achieve this?

    eg. now :

    19 (date)
    Icon
    Event Title

    what I want:

    19
    Icon

    I can’t set the event title to display:none via css because the icon is an image inside the title tag so that removes the icon aswell.

    edit for clarity:
    This is in the normal view without going to a event detail page or clicking the date.

    https://www.ads-software.com/plugins/my-calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Unusual request. Let me think…

    You can easily set the event title to something other than the event title, by editing the text setting for the Event title template on the Settings page. What you would probably want to do is something like <span class='screen-reader-text'>{title}</span> and then add styles to your theme:

    .screen-reader-text {
        position: absolute;
        left: -999em;
    }

    The reason I suggest using an offscreen positioning class instead of display: none is so that the title of your event is still available to users of screen readers, but that’s ultimately up to you.

    Thread Starter Niek Willemarck

    (@niek-willemarck)

    Thanks for the fast response!

    That worked beautifully, didn’t know you could adjust it that way, very easy.
    Thanks for the nice plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide title in calendar’ is closed to new replies.