Event Website URL snippet targets Additional Field URLs

Home Forums Calendar Products Events Calendar PRO Event Website URL snippet targets Additional Field URLs

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1020618
    Sean
    Participant

    Hi 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.

    #1020885
    Geoff
    Member

    Hi 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!
    Geoff

    #1020964
    Sean
    Participant

    Good 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,
    Karly

    #1021253
    Geoff
    Member

    My 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!
    Geoff

    #1021668
    Sean
    Participant

    Thanks 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!

    #1021689
    Geoff
    Member

    My pleasure! Thanks again for getting in touch and feel free to hit us back up if any questions pop up along the way. 🙂

    Geoff

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Event Website URL snippet targets Additional Field URLs’ is closed to new replies.