Change button text
-
Hi,
I’ve changed the order in which fields appear on the single event page. What I would like is to add a label to the three core/buttons below so that the first one says Amazon, the second one says Hive and the third one says Waterstones. At the moment, I’m doing this manually every time I create a new event using a reusable block, but ideally would do this via the template. I can’t figure out how to set the button’s label (I’m a php n00b). Any help would be very appreciated.
add_filter( 'tribe_events_editor_default_template', function( $template ) { $template = [ [ 'tribe/event-organizer' ], [ 'tribe/event-datetime' ], [ 'core/paragraph', [ 'placeholder' => __( 'Add Description...', 'the-events-calendar' ),], ], [ 'core/button' ], [ 'core/button' ], [ 'core/button' ], ]; return $template; }, 11, 1 );
Thank you,
Kia
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change button text’ is closed to new replies.