Issue with Single Event page's schema markup tags

Home Forums Calendar Products Events Calendar PRO Issue with Single Event page's schema markup tags

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1141824
    DAVID
    Participant

    Hey Guys,
    Please check this link, Its showing me errors on schema & hcalender. I see you guys are adding some schema related content via js

    <script type="application/ld+json">
    [{"@context":"http://schema.org","@type":"Event","name":"Basic 200 Yoga Teacher Training July Full Time","description":"<p>Our 200 hour yoga teacher training full time (immersion) program is designed for students to complete an in-depth program in the shortest period possible. If you wish to deepen their practice, the one month immersion provides an excellent &quot;urban retreat&quot; experience in the heart of San Francisco. TYPICAL SCHEDULE Tuesday-Friday: ... <a href=&quot;http://www.yogagardensf.com/event/yoga-teacher-training-july/&quot; class=&quot;more-link&quot;>Read More</a></p>\\n","image":"http://www.yogagardensf.com/wp-content/uploads/2016/04/Home-page-square-2.jpg","url":"http://www.yogagardensf.com/event/yoga-teacher-training-july/","startDate":"2016-07-05T07:00:00+00:00","endDate":"2016-08-01T06:59:59+00:00","offers":{"@type":"Offer","price":"3550","url":"http://www.yogagardensf.com/event/yoga-teacher-training-july/"}}]
    </script>

    Can you please help me with this? I need to solve these errors & warnings.. How to add values to this js?

    • This topic was modified 9 years, 9 months ago by DAVID.
    • This topic was modified 9 years, 9 months ago by George.
    #1142076
    George
    Participant

    Hey @DAVID,

    Thanks for reaching out. To try and help me identify the cause of these errors, can you post your site’s complete, un-edited System Information to this thread?

    Here is how to do that → https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    You can post that information in a private reply if you would like to keep the information hidden from the public; only you and us on the support team can read the contents of private forum replies.

    I’ll take a look and make further recommendations from there.

    Thank you!
    George

    #1142348
    DAVID
    Participant

    This reply is private.

    #1142421
    George
    Participant

    This reply is private.

    #1142531
    DAVID
    Participant

    This reply is private.

    #1142597
    George
    Participant

    This reply is private.

    #1142605
    George
    Participant

    Hopefully our methods make sense and we can proceed with trying to solve your problem now. Let me know if you have further questions, but I will now proceed with the issues at hand. If the reasoning for getting system information wasn’t clear before, I do apologize for that lack of clarity and hope my explanations above reveal the value of having that information.


    Part One: What the Errors Are

    First, let’s review what actual errors are going on here. Please note there are Errors, and Warnings. Errors need to be fixed according to Google. Warnings are things that Google might recommend you do, but that will not break anything, will not hurt SEO, will have no search cost or page-load cost, etc.

    We will ignore the warnings for now for the sake of prioritizing the “errors”. We can consider the warnings later, but need to address the errors first and should focus on them to be effective.

    The errors with that event are as follows:

    • Event Location: the event does not have a location value for the JSON LD location field.
    • hCalendar dtstart: the event only provides a start date, and does not have a complete start time.
    • hCalendar dtend: the event only provides an end date, and does not have a complete end time.
    • hCalendar Location: this is the same as the Event Location field, but since it is absent another “location” error is flagged. So, i.e., if we solve the Event Location error it should solve this error as well.

    Part Two: Fixing the Errors

    1. Event Location and hCalendar Location
    I took a look at the event itself on your site, http://www.yogagardensf.com/event/yoga-teacher-training-july/, and do not notice a venue specified for this event.

    • 1a) Is it correct that this event does not have a venue?
    • 1b) If you add a venue, save the event, and then run it through the testing tool again, do the Event Location and hCalendar Location errors go away?

    2. hCalendar dtstart
    The event appears to be an “All Day” event, so while a start date is provided, a start time is not provided because, well, the event is “All Day.”

    • 2a) Can you confirm that the event is indeed an “All Day” Event?
    • 2b) Can you try adding a start time, saving the event, and then having a look at the event in the testing tool and see if the dtstart error remains?

    3. hCalendar dtend
    The event appears to be an “All Day” event, so while an end date is provided, an end time is not provided because, well, the event is “All Day.”

    • 3a) Can you try adding an end time, saving the event, and then having a look at the event in the testing tool and see if the dtend error remains?

    In Closing

    There are numerous details tracking here, so please respond to the specific numbered questions in the format they are written in above if possible. So to answer question 2a, for example, be sure to preface your answer with 2a), like this:

    2a) Yes, the event is an “All Day” event.

    ☝️ I don’t mean to impose this to be a stickler here, I just want to help resolve these issues for you as fast as possible and keeping the communication organized and focused is essential to that.

    Thank you,
    George

    #1142816
    DAVID
    Participant

    This reply is private.

    #1143613
    DAVID
    Participant

    Guys,
    Anything? I already reply to your queries..

    #1143779
    George
    Participant

    Hey David,

    Thank you for your patience with my reply.

    In regards to your replies:


    All of there events are conducted at there location which is yoga studio which is the business of the whole site. I think thats why client isn’t entering location. Can I hard code it into the event template? Any example? If I trying add location to all the events then it will be a long process.

    Adding a venue through this plugin is the best way to add an event location. It could technically be hard-coded into the plugin. We unfortunately cannot help with writing custom code, but you can do this on your own or hire a professional developer to assist you.

    The files you would need to edit are located in the /JSON_LD file inside The Events Calendar. You can find that folder within your The Events Calendar plugin files at this location:

    the-events-calendar/src/Tribe/JSON_LD


    As for the date issues, I cannot reproduce the same sort of behavior so I am going to investigate this further and see if our developers have insight as to why this might be happening.

    Thank you!
    George

    #1143945
    Mathew
    Participant

    A little feedback on this one. I have clients that this data is very important to them, or so they think. With that, I decided to validate a few of my customer sites. I did not see the same results as your site.

    I think Google has it wrong in making location a required field. At most it should be a warning and not an error.

    As for your particular issue, the JSON data that is being passed in the JavaScript is showing the dtstart and dtend in the correct format.

    However, the error is not coming from the JSON data. It is coming from the DETAILS section of your website. From what I can see, it looks highly customized. It looks great by the way! The Start and End date on the right ONLY has a – span class=”dtstart” and span class=”dtend”. This is where it is picking it up and producing the error in the Google test because the date format that follows really is incorrect for structured data.

    If you look at the default /the-events-calendar/src/views/modules/meta/details.php file around line 67, you should see a title=”…..($start_ts)”. It NEEDS this to produce the correct start/end date format. This may not be present in your customization of the details section.

    Hope this points you in the right direction.

    #1144154
    George
    Participant

    Mathew, this is an excellent insight and I greatly appreciate your chiming in on this!

    We’re pretty certain David’s custom coding and/or his theme is the culprit here—earlier he mentioned this:

    Its related to theme, just few tags related modifications..

    Since I cannot reproduce the problems on my own site, nor on WP Shindig, I should have been a bit more vocal about these “tags related modifications” — my apologies for not thinking of that and being more clear, @DAVID!

    I would recommend making a backup of these modifications somewhere on your computer; then temporarily remove them (without changing your theme) from your site so that your site is running NO template modifications.

    In this state, do you get different results with the Google testing tool?

    These specific steps will just help us confirm whether the issues are from your theme, or from your customizations to the theme.

    Let us know what you find!
    George

    #1152633
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Issue with Single Event page's schema markup tags’ is closed to new replies.