• Resolved genesismoss

    (@genesismoss)


    Does anyone know how to make the event URL show up at the top of each event page underneath the title and date? I know it’s already listed in the “Details” at the bottom of each event, but so many of my viewers never scroll down that far to see it. I need it to show up at the top of the page as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Chika Ibeneme

    (@chikaibeneme)

    Hi @genesismoss,

    Thanks for reaching out!

    Gonna check with our team to see if we have a snippet for this, I’ll get back to you as soon as possible.

    Plugin Support Chika Ibeneme

    (@chikaibeneme)

    Hi @genesismoss,

    Here is the information that I have for you.

    You can either customize the following files and add the URL that way:

    Customize plugins/the-events-calendar/src/views/single-event.php

    Or

    You could also use the tribe_events_single_event_before_the_content filter

    add_action(
    	'tribe_events_single_event_before_the_content',
    	function() {
    		echo tribe_get_event_website_link();
    	}
    );

    This code can be added to your functions.php file after the opening php tag “<?php”. Note that this doesn’t include any styling

    Thread Starter genesismoss

    (@genesismoss)

    Hi there! Thank you for the info! I tried adding the code to my functions.php file and it’s still not showing the event URL at the top.

    I can also try the single-event.php file as you suggested…but how would I modify that? What code calls up the URL so I can add it to the top? Unfortunately, I don’t know enough PHP to figure this out myself without a simple copy-n-paste solution. =(

    Plugin Support Abz

    (@abzlevelup)

    Hi @genesismoss, this would need more customization to insert the URL on top of the single page. This would require a bit of knowledge of PHP. https://theeventscalendar.com/knowledgebase/k/customizing-template-files-2/

    This is the template you’d need to override
    the-events-calendar/src/views/single-event.php
    Override this template in your own theme by creating a file at
    [your-child-theme]/tribe-events/single-event.php
    Then copy this code snippet from this template for the event website/URL into the single event template.
    the-events-calendar/src/views/blocks/event-website.php

    I want to note here that as per our Support Policy, we cannot provide full support for Customization or third-party integrations, even if we have a guide on our Knowledge base. It is still up to you as the end-user to implement this. See the article here → https://theeventscalendar.com/knowledgebase/k/what-support-is-provided-for-license-holders/.

    Let me know if this helps.

    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @genesismoss, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add event URL underneath Date on Single Event Pages’ is closed to new replies.