Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there !

    Thanks for reaching out — that’s a great question, I can help with that ??

    Have you added the following to your functions.php:

    add_filter(‘tribe_get_event_website_link_label’, ‘tribe_get_event_website_link_label_default’);

    function tribe_get_event_website_link_label_default ($label) {
    	if( $label == tribe_get_event_website_url() ) {
    		$label = "Visit Website »";
    		$class = "my-button-class";
    	}
    
    	return '<a class="' . $class . '" href="' . tribe_get_event_website_url() . '">' . $label . ' </a>';
    }

    And the following to your styles.css or Additional CSS editor?

    .my-button-class {
    background-color: red;
    padding: 10px;
    color: #fff;
    float: left;
    }

    It looks like some template overrides are in place which could be affecting it. Have you also tried the first part of that tutorial you linked, linked word?

    • This reply was modified 6 years, 6 months ago by Ed. Reason: additional info
    Thread Starter ahoffman50

    (@ahoffman50)

    Yes, I have.

    I’m not sure what went wrong there, following that guide give the expected result for me → https://p.tri.be/0oj2OO

    Hey there,

    Since this thread has been inactive for a while, I’m going to go ahead and mark it as resolved. Don’t hesitate to create a new thread any time you help again!

    Ed ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating a “Buy Tickets” button instead of website link’ is closed to new replies.