• Hi, I’m finally getting around to updating Simple Calendar after your significant upgrade from about a year ago, and am running into a couple hiccups.

    The [description] and [location] tags seem to be adding <p> tags, even though I have “No line breaks, no auto paragraphs” selected for Event Formatting.

    Here’s what I’m trying to use:

    [start-time] – [description] ([location])

    Here’s the html that’s being generated:

    <li class="simcal-event simcal-event-recurring simcal-event-has-location simcal-events-calendar-1108" itemscope itemtype="http://schema.org/Event" data-start="1479414900">
    <div class="simcal-event-details">
    <div class="gce-list-event"><span class="simcal-event-start simcal-event-start-time" data-event-start="1479414900" data-event-format="g:i a" itemprop="startDate" content="2016-11-17T14:35:00-0600">2:35 pm</span> –
    <div class="simcal-event-description" itemprop="description">
    <p>description_test</p>
    </div>
    <p> –  <span class="simcal-event-address simcal-event-start-location" itemprop="location" itemscope itemtype="http://schema.org/Place"><meta itemprop="name" content="location_test" /><meta itemprop="address" content="location_test" />location_test</span></div>
    </div>
    </li>

    I’ve ruled out theme, plugin and widget conflicts. Thanks in advance for any suggestions!

    Charley

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    Try running through this first: http://docs.simplecalendar.io/troubleshooting-theme-plugin-widget-conflicts/

    Also, do you have a link to the calendar so I can check it out?

    Thread Starter charleyer

    (@charleyer)

    Thanks for the reply, Nick. I went through that troubleshooting guide, and am pretty confident there are no theme/plugin/widget conflicts.

    Here’s a link to the calendar on our site (it’s a small movie theater):

    http://dev.theplazatheater.com/

    We use the description and location fields in our Google calendar to show the movie title and rating. The above was what I was using when troubleshooting; here’s an update that shows what’s on the site now:

    [start-time] – [description autolink="yes"] ([location])

    Thanks again for your help!

    Plugin Contributor Nick Young

    (@nickyoung87)

    Ok I have a couple things I want to have you try:

    1. Try changing your description tag to use the HTML attribute like this: [description html="yes"]

    2. Try entering the event template tags into the “text” version of the editor and not the “visual” side: http://www.screencast.com/t/9zNERIxgx

    3. Does using a “Compact List” change anything? http://www.screencast.com/t/p4eNjOip

    Let me know if any of that helps and if not I will continue to dig deeper.

    Thanks!

    Thread Starter charleyer

    (@charleyer)

    Thanks Nick. Unfortunately these didn’t resolve the problem though.

    I also realized that the movies we had in our test calendar expired, so I set a few to repeat for the next 40 days. Hopefully it won’t take that long to sort out the glitch, but just in case 🙂

    Another curious thing is that there’s an extra space showing up before the location (or in our case, the movie’s rating). We’ve been putting it in parentheses; now there’s an extra space before the content of the location field in the Google calendar event, in addition to the <p> tags. Could they be related?

    Thanks for your help!

    Plugin Contributor Nick Young

    (@nickyoung87)

    Can you give me the whole event template you are using?

    Thread Starter charleyer

    (@charleyer)

    Do you mean this?

    [start-time] – [description html="yes"] ([location])

    Or something else?

    Plugin Contributor Nick Young

    (@nickyoung87)

    Ok yeah sorry I thought you had more in there just wanted to make sure there weren’t any spacing issue coming from that.

    I know I asked you to add the html="yes" previously. Did that change anything for the better or worse?

    I think it might be just the way the plugin is outputting that information. I’m gonna have to take a look deeper there to see if I can find out why it is doing that.

    Thanks for your patience.

    Thread Starter charleyer

    (@charleyer)

    No worries, I appreciate your help!

    No change whether html="yes" is there or not.

    Thanks again Nick.

    Plugin Contributor Phil Derksen

    (@pderksen)

    @charleyer I just tested with [description], [description html="yes"], and [start-time] – [description html="yes"] ([location html="yes"]), and the latter 2 correctly removed all the <p> tags, as long as “No line breaks, no auto paragraphs” is selected for Event Formatting.

    Make sure you’re updated to the latest version, and if so, could you include the Google Calendar ID so we can test further?

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘extra line breaks, space’ is closed to new replies.