WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Events
[resolved] add html tag on event date format (5 posts)

  1. Colir
    Member
    Posted 1 year ago #

    Hi, i would like to know if there are a way to wrap date format in html tag. (the idea is to add some hml tag inside '.gce-list-title')

    I try using this in the time Format input :

    <span class="day">D</span> d M
    But the span was remove on form submition.

    Any idea ?
    thanks a lot

    http://wordpress.org/extend/plugins/google-calendar-events/

  2. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hello,

    Adding HTML to the date / time format options won't work, I'm afraid.

    However, you could try disabling the title option (by omitting the title parameter from the [google-calendar-events] shortcode, or by disabling the relevant option in the widget settings), and instead use the event display builder (in the feed settings, under "Display Options") to output a "title".

    This would mean you could use something like this:

    <span class="day">[start-custom format="D"]</span> d M
  3. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    That actually should have been as follows, I think:

    <span class="day">[start-custom format="D"]</span> [start-custom format="d M"]

    Anyway, marking as resolved. If you require further assistance, let me know.

  4. Colir
    Member
    Posted 1 year ago #

    Yop !
    All my apologize for my feedback delay.
    I 've used the Event Display Builder, to get what i wanted.
    This feature is really flexible, you 've done a really good job !

    I take this opportunity to suggest you 2 optimisations :
    - it could be great that the edition zone of the display builder (textarea) will be more larger in a futur version
    - And it will be usefull that when we validate the setting page , we stay on it (when editing the display builder, i made a lot of forward/backward to get the correct result on my display)

    Anyway. i like your plugin.
    thanks a lot

  5. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    These are both great suggestions!

    Many thanks for your feedback.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.