Home › Forums › Calendar Products › Events Calendar PRO › Removing Day Number Link – ?
- This topic has 8 replies, 4 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
April 28, 2012 at 9:36 pm #18393DannyParticipant
What file would I go to in order to remove the link to the day number above an event?
When you click on that link on my site, there is no info on the page that the day number links to as I have set display to none.
If I could be instructed to what file I would need to alter to remove the link, that would be great. However, I do need to keep the day of the month there, just no link.
Thanks
-DannyApril 30, 2012 at 7:47 am #18419RobMemberHey Danny. Are you just talking about the single day view, that allows you to view all events taking place a specific day?
April 30, 2012 at 7:55 am #18425DannyParticipantI was hoping to remove the link that would bring you to the single day view.
So when you go to a page that has the calendar on it, I want to remove the the function of being able to click on the number of what day it is which would bring you to the view of all events taking place on a specific day.
I have enabled a several forms on my clients site that I have included with each event.
With the height of this form, and depending on how many events I have on one day – the page can become extremely long, therefore I have been trying to exclude the option of being able to see a list of all events.April 30, 2012 at 7:07 pm #18465RobMemberAh, gotcha. That makes sense and should be doable – though I’m not sure how myself. We’ve had a lot of discussions with users about how to noindex it but not how to remove it entirely. Let me see what our dev Jonah would suggest on this. I’ll get him to comment directly.
May 1, 2012 at 3:19 pm #18519DannyParticipantThanks Rob.
Danny
May 1, 2012 at 9:52 pm #18539JonahParticipantHi Danny,
All you’ve got to do is make a copy of /wp-content/plugins/the-events-calendar/views/table.php and place in an ‘events’ folder in your theme. Then find lines 102-106:
if( function_exists('tribe_get_linked_day') && count( tribe_get_events( array( 'start_date' => $date, 'end_date' => $date, 'eventDisplay' => 'all') ) ) > 0 ) {
$return .= tribe_get_linked_day($date, $day); // premium
} else {
$return .= $day;
}
and replace with:
$return .= $day;
That’ll get rid of those links!
May 2, 2012 at 10:09 pm #18596DannyParticipantThanks Jonah!
This worked perfect!
May 3, 2012 at 11:19 am #18625JonahParticipantGreat to hear Danny, let us know if there’s anything else we can help out with here.
July 7, 2015 at 6:19 am #976715Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Removing Day Number Link – ?’ is closed to new replies.