Disable Link of Upcoming Events Title

Home Forums Calendar Products Events Calendar PRO Disable Link of Upcoming Events Title

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1431600
    venthi76
    Participant

    Hi,

    I need to link-ed”Upcoming Events” in title to be removed. How to achieve this. Tried browsing through the template files etc but cannot find a file where i can edit this. Please assist.

    Url given in private reply.

    Thanks.

    #1431601
    venthi76
    Participant

    This reply is private.

    #1432911
    Geoff B.
    Member

    Good evening Thirukumary and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    The simplest way to achieve this would be to create a customization for the single event view (template override).

    In fact we have built our calendar in a way that makes this relatively straightforward.
    You might want to read our Themer’s guide to get a sense of how that works.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1433085
    venthi76
    Participant

    Hi,

    Gone through the template file at /photo/content.php and I believe the Title and Link is called via the following link below copied from content.php

    The problem is I am not sure how to edit since the the linking is not done via normal “a href” but via the function. Appreciate if you can assist.

    Thanks.

    • This reply was modified 8 years, 3 months ago by venthi76.
    • This reply was modified 8 years, 3 months ago by venthi76.
    • This reply was modified 8 years, 3 months ago by venthi76.
    • This reply was modified 8 years, 3 months ago by venthi76.
    • This reply was modified 8 years, 3 months ago by venthi76.
    #1433093
    venthi76
    Participant

    Snapshot of the code can be viewed here as i was having hard time to post it as code – https://www.dropbox.com/s/em4fwgxfj6bxk16/content.jpg?dl=0

    • This reply was modified 8 years, 3 months ago by venthi76.
    #1434299
    Geoff B.
    Member

    Good evening,

    Thank you for writing back.
    You have found the perfect function.

    It can be altered using the following conditional.

    if ( is_tax( $tribe_ecp->get_event_taxonomy() ) && $depth )

    Look at the following snippet for inspiration: https://gist.github.com/andrasguseo/53b0f71f7545f19ef7c70aa101516501

    More specifically, lines 72 to 76. If you remove the <a> link and echo only the title, that should work.

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1434329
    venthi76
    Participant

    Thanks Geoff B.

    That solution solved the issue and gives me more insight of things that can be changed.

    #1434849
    Geoff B.
    Member

    Good afternoon,

    I am super stoked that you were able to achieve your goal and that you learned a couple of things along the way.

    You are welcome back in our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great week!

    Geoff B.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Disable Link of Upcoming Events Title’ is closed to new replies.