Home › Forums › Calendar Products › Events Calendar PRO › upcoming events
- This topic has 9 replies, 3 voices, and was last updated 8 years, 4 months ago by
Cliff.
-
AuthorPosts
-
December 19, 2017 at 4:29 pm #1409262
Mel
ParticipantHi…. 🙂
I have the upcoming widget on the home page of a new church site. (see pic)
When the user clicks one of the events they are taken to the singe event page (see pic) which
needs some changes!!Change 1: I would like to remove the see all link!
Change 2: I would like the all events link to be a html button to go back to the previous page!
Something simple like:
<FORM>
<INPUT TYPE=”button” VALUE=”Back” onClick=”history.back()”>
</FORM>Or any method you think would work better…
Thanks
MelDecember 19, 2017 at 9:59 pm #1409437Cliff
MemberHi, Mel.
1)
This snippet should do the trick for you:
https://gist.github.com/cliffordp/a07b30dbc08fcce0f00e1f3b57896e64
2)
You could use the tribe_get_events_link filter hook and create your own customization.
December 20, 2017 at 4:24 pm #1410478Mel
ParticipantHi Cliff,
The code snippet worked fine….
I am not a programmer so not sure how to create a filter? Any other examples that might help? I just want that link to go to the home page and change the link text to “<< Back"
Thanks
MelDecember 20, 2017 at 5:11 pm #1410497Mel
ParticipantHi Cliff,
I ftp into my account and did not find the following folders: Located at src/functions/template-tags/link.php (Line: 114) as described in the link you gave me.
See attached pic….Thanks
MelDecember 21, 2017 at 6:33 am #1410793Cliff
Member1)
I’m glad that worked for you 🙂
2)
Your screenshot is from Events Calendar PRO. It’s actually in The Events Calendar.
You don’t need to navigate there unless you are going to reference it for the sake of creating your own snippet, which you said you weren’t comfortable doing.
For your request, you initially said, “to go back to the previous page” and provided a bit of JavaScript — basically acting as the browser’s “back” button.
Now you’re saying the “All Events” link should go to your homepage instead of your Events page, right?
If yes, are you wanting your Events page to basically be disabled, always redirecting to your homepage?
December 21, 2017 at 1:19 pm #1411208Mel
ParticipantHi..
Sorry for the confusion.. The flow of the calendar can be confusing to me.
2) I would like the link/button to just go back to previous page
( like on the browser).Thanks as always, the support here is so good!
Mel
December 21, 2017 at 4:27 pm #1411355Cliff
MemberPlease note that we normally do not provide such in-depth support — providing snippets — but we have leeway to go above-and-beyond for customers on occasion.
Give this a shot and let me know how it goes:
https://gist.github.com/cliffordp/60b5acf003fa68ad7803313d662c08e7
December 22, 2017 at 1:12 pm #1411929Mel
ParticipantHi,
Thank you button works fine….. Enjoy the Holidays!!!!
Mel
December 22, 2017 at 3:34 pm #1411984Cliff
MemberGlad to hear that. Thanks for letting me know.
Same to you 🙂
-
AuthorPosts
- The topic ‘upcoming events’ is closed to new replies.
