Home › Forums › Calendar Products › Events Calendar PRO › Changing the url labels
- This topic has 16 replies, 3 voices, and was last updated 12 years, 1 month ago by
Casey.
-
AuthorPosts
-
February 28, 2014 at 6:45 pm #111027
irishrunner16
ParticipantHi. I tried placing the following code in my functions.php to change the text/label that is displayed for the Event Website url (changing tribe_get_organizer_website_url to tribe_get_event_website_url): http://pastebin.com/nYTGg2DF
It’s working, but unfortunately it’s also changing the labels for my Additional Fields that are urls. How can I get unique labels on the Event Website, as well as the additional fields?March 3, 2014 at 8:36 am #111563Casey
ParticipantSean,
Thanks for reaching out. How do you have your URL labels set up? Are they set up as Additional fields (Events->Settings->Additional Fields)? The reason I’m asing is because I wasn’t able to replicate your issue in my environment (screenshot), since only my ‘Event Website’ field is displaying ‘See Website.’So, if you could just give me a little more information, I’ll investigate further. Thanks! 🙂
-Casey-
March 3, 2014 at 10:12 am #111619irishrunner16
ParticipantThis reply is private.
March 3, 2014 at 10:14 am #111623Casey
ParticipantSean,
Could you paste in the exact code you’re using in your functions.php file to somewhere like pastebin so I can look closer? Thanks!March 3, 2014 at 11:26 am #111689irishrunner16
ParticipantThis reply is private.
March 4, 2014 at 5:00 am #112129Casey
ParticipantIt says the paste is private, so I’m unable to view it. Could you change the permissions? Thanks!
March 4, 2014 at 6:43 am #112169irishrunner16
ParticipantSorry about that Casey; thought private just meant that only members could view it! I’ve changed it to unlisted so hopefully you can view it now.
March 4, 2014 at 7:11 am #112181Casey
ParticipantSean,
Ok, that helps. Could you send me a private reply with a login to your site, so I can investigate further? Thanks!March 4, 2014 at 8:11 am #112260sean
ParticipantThis reply is private.
March 4, 2014 at 8:14 am #112262irishrunner16
ParticipantThis reply is private.
March 4, 2014 at 8:21 am #112273Casey
ParticipantSean,
For some reason when saving some changes to your functions.php file, the server didn’t respond, which caused a partial file to get saved. Could you send me some FTP credentials so I can fix it ASAP? Thanks!March 4, 2014 at 8:44 am #112294irishrunner16
ParticipantThis reply is private.
March 4, 2014 at 8:46 am #112296Casey
ParticipantNo problem! Just remove the last function in your functions.php file: ‘rewrite_website_link_label’. I forgot to rename the function and it looks like the duplicate function name is causing the error. 🙁
March 4, 2014 at 9:03 am #112311irishrunner16
ParticipantOk thanks. It looks like the Event Website label is now correctly only showing up for only that url. Thanks for catching that error in the function!
One last thing – how can I get custom link labels for my Additional Fields?March 4, 2014 at 9:43 am #112322Casey
ParticipantSean,
Unfortunately we can’t target specific links in the additional fields, but if you just use some more generic text like this (screenshot), then I think that might do the trick. Let me know if that will work. Thanks! 🙂-Casey-
-
AuthorPosts
- The topic ‘Changing the url labels’ is closed to new replies.
