Home › Forums › Calendar Products › Events Calendar PRO › Event Website URL snippet targets Additional Field URLs
- This topic has 5 replies, 2 voices, and was last updated 10 years, 5 months ago by
Geoff.
-
AuthorPosts
-
November 1, 2015 at 3:25 pm #1020618
Sean
ParticipantHi again!
Following the snippet for Make the Event Website URL a linked word or button targets not only the Event Website URL field, but also any Additional Fields that are set as URLs for their field type. For those of us using your Filter Bar plugin in addition to TEC PRO, that really makes the snippet unusable. Would you be able to update the snippet to only target the Event Website URL field? Thank you.
November 2, 2015 at 10:38 am #1020885Geoff
MemberHi Karly and thanks for getting in touch!
That snippet actually does not touch additional fields. It appears that there are some customizations to your event template that is causing the interaction to happen instead. If you open your theme directory, do you see a tribe-events folder in there? If so, that’s where I would recommend looking first. It’s also possible you are using other snippets (perhaps in the fucntions.php file?) that are interfering with that particular one.
The funny thing is that while testing this, I noticed another unrelated issue when using URLs as custom fields–so thanks for reporting this so I could find that!
Let me know if you have customizations in place and, if so, what they are? I’d be happy to help as best I can from there, though I may not be able to solve the issue.
Cheers!
GeoffNovember 2, 2015 at 1:40 pm #1020964Sean
ParticipantGood afternoon Geoff,
Thanks for explaining how the snippet does not effect the additional fields. I took another look in my theme and I think the issue was that I was setting the class of the “Event Website” button to be the same as another class that was targeting the other links in the sidebar? I’m not sure how or why – I just know that when I removed the class entirely from the Event Website snippet, the additional fields returned to their regular styling.
Happy to hear that this lead to the discovery of another issue!
Now, I just need to figure out how to properly target the Event Website link in the sidebar so that it appears with the same styling as the buttons in my main content, even though that string is an “a”/link element.
Best,
KarlyNovember 3, 2015 at 7:19 am #1021253Geoff
MemberMy pleasure and thanks for following up!
I wonder if you could wrap that snippet in a conditional statement, like testing to make sure the link is not in a sidebar using the is_active_sidebar() function or possibly some other test. Just an idea and haven’t tested it myself, but it might be a lead.
I’ll this thread open a while longer in case you hit any other questions while working on it and I’ll certainly do my best to help.
Cheers!
GeoffNovember 4, 2015 at 6:14 am #1021668Sean
ParticipantThanks Geoff. In my case (using the Avada theme) the Event Website actually is located in the sidebar (as opposed to the main content), so I’m not sure if that function would get the desired result. In any case, we’re going to be hiring a developer to add some custom functionality to TEC, so will probably have to have them tackle this then. Thanks again!
November 4, 2015 at 7:08 am #1021689Geoff
MemberMy pleasure! Thanks again for getting in touch and feel free to hit us back up if any questions pop up along the way. 🙂
Geoff
-
AuthorPosts
- The topic ‘Event Website URL snippet targets Additional Field URLs’ is closed to new replies.
