Home › Forums › Calendar Products › Events Calendar PRO › Rich Snippets and Wrong Links In Google Search Results #2
- This topic has 4 replies, 3 voices, and was last updated 7 years, 11 months ago by
Bark.
-
AuthorPosts
-
October 26, 2015 at 2:35 am #1017797
Bark
ParticipantHi,
James Burgos and other people already mentioned this issue in a similar thread, however my case is slightly different, that is why I have created a new thread.
I really like the TEC, especially the events list widget, which I have displayed in my footer, resulting in rich snippets dispay in Google Search Results below every site URL of mine. Awesome!
On the other hand, as mentioned by James Burgos, the three events in Google Search results below my website URL do not link to the individual events. Instead, they all link to the page where the widget is displayed, thus the search result in Google.
I am also using the Yoast SEO plugin and I would like to keep the widget in my footer, thereby making use of its enormous advantage of events display in Google.
However, I would like all the events link to their own individual event page.
Do you have any idea how to achive that? Nico Santos proposed a solution by changing the ‘list-widget.php’ file, but I do not know if that also applies in my case 🙂
Thank you very much in advance!
Best,
Bark
October 26, 2015 at 11:12 am #1018037Brook
ParticipantHowdy Bark,
That’s a great question. Thanks for sharing all of your research and detailing the problem, that is very much appreciated.
You do want to edit the widget’s PHP file. Specifically this one: /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php. The best way to make changes to it is to “override” it as outlined in our Themer’s Guide. Around line 33, change this:
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a>To this:
<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark" class="url"><?php the_title(); ?></a>That should fix the issue. You can test this out by using Google’s Structured Data Testing Tool. If it shows that there is a URL field for each hcalendar entry, then you are successful. The next time Google indexes your site, which might take a few days, they will begin linking to the events.
Does that all make sense? Does that work for you? Please let me know.
Cheers!
– Brook
October 26, 2015 at 12:00 pm #1018616Bark
ParticipantHi Brook,
Thanks for your elaborate reply. I think it has resolved my issue as I find 4 hcalendar entries per inserted event URL. And 3 for all the ‘normal’ pages. Let’s wait and see 🙂
With regard to location of the file I had to alter, I guess you mean “wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules” You forgot the /widgets/ part 😉
Last, during testing with the Structured Data Testing Tool, I found 2 hcalendar errors: the website URL from the organizer and venue were not inserted properly. I always prefer http://www.forexample-smt.com instead of http://www.forexample-smt.com. Apparently The Events Calendar does not correct the URL without http:// automatically. Perhaps an idea for a future update?
The URL of the event under details/data is automatically corrected on the other hand.
Thanks for your everything!
Best regards,
BarkOctober 26, 2015 at 11:43 pm #1018772Brook
ParticipantHowdy Bark,
You are welcome for the help. Thanks for reporting the errors. We are actually aware of a couple harmless hcalendar errors, that are basically impossible for us to fix right now. It will involve some deeper changes to the calendar, all to fix an error message that causes no problems. We are planning to do this, but it is low on our priorities right now.
I am happy that you were able to get an override working. Do you need any more help with this, or are you all set?
Cheers!
– Brook
May 10, 2018 at 7:44 am #1527233Victor
MemberHi There!
We are just caching up with some delayed notifications about our bug reports and I just wanted to share with you that this issue is no longer present in our latest version of our plugin.
You can find out more about our latest release → https://theeventscalendar.com/maintenance-release-for-the-week-of-6-may-2018/
We apologize for the delay in notifying you about it.
Please update the plugins and don’t hesitate to open a new topic if anything comes up.
Best,
VictorJune 1, 2018 at 9:35 am #1543992Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Rich Snippets and Wrong Links In Google Search Results #2’ is closed to new replies.
