• Resolved jamesml

    (@jamesml)


    Hello,
    The default text label for an Event Website appears to be:
    “View Event Website”
    Is it possible to modify the text label?
    I wasn’t able to find in the code where this text is set.

    Thanks ion advance.

    James

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jamesml

    (@jamesml)

    Hello,

    I haven’t had any replies to my query.
    Could someone at least point me in the right direction.
    I don’t think the text label can be changed by changing a css file, so how does one modify the event display labels?

    Thanks in advance,

    James

    I have the same request, for some reason Tribe has made this nearly impossible. HELP, Tribe, you have too much control over the labels…

    Found the solution: Edit details.php in src -> views -> modules -> meta
    Line 56, change $website = tribe_get_event_website_url( $event_id );
    to $website = tribe_get_event_website_link( $event_id );

    Then, lines 166-168, change from:
    <?php if ( ! empty( $website_title ) ): ?>
    <dt class=”tribe-events-event-url-label”> <?php echo esc_html( $website_title ); ?> </dt>
    <?php endif; ?>
    TO just:
    <dt > <?php esc_html_e( ‘Purchase:’, ‘the-events-calendar’ ) ?> </dt>
    and also
    Change line 169 from: <dd class=”tribe-events-event-url”> <?php echo $website; ?> </dd>
    to: <dd class=”tribe-events-event-label”> “>Whatever You Want Label/a> </dd>

    Save the new Details.php in child theme folder:
    tribe-events -> modules -> meta

    Hope that helps others.

    Thread Starter jamesml

    (@jamesml)

    Thanks for sharing your solution. I’ll try it out on my website.

    James

    @ideahost I tried this out today but it didn’t work. Changing line 169 just shows plain text. Is there something missing from that line?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change label for Event Website’ is closed to new replies.