Support

Home Forums Event Espresso Premium Remove View Details

Remove View Details

Posted: November 18, 2013 at 6:24 am


Ryan R

November 18, 2013 at 6:24 am

How do you Remove View Details on the event registration page so it just have the Add to cart link.


Tony

  • Support Staff

November 18, 2013 at 6:39 am

Hi Ryan,

The is no option to remove ‘View Details’ from the Event List page.

This would need to be through modifying the templates.

If you copy event-espresso/templates/event_list.php & event_list_display.php to wp-content/uploads/espresso/templates and edit there files there the modifications will not be lost during updates.

Open up the new event_list_display.php file on line 135 comment out:

'separator' => __(" or ", 'event_espresso')

so it becomes

//'separator' => __(" or ", 'event_espresso')

On line 158 you should see:

<a class="a_register_link ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all" id="a_register_link-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('View Details', 'event_espresso'); ?></a> <?php echo isset($cart_link) && $externalURL == '' ? $cart_link : ''; ?>

Remove all but the

<?php echo isset($cart_link) && $externalURL == '' ? $cart_link : ''; ?>

So line 157-159 reads:

<p id="register_link-<?php echo $event_id ?>" class="register-link-footer">
				<?php echo isset($cart_link) && $externalURL == '' ? $cart_link : ''; ?>
			</p>

The support post ‘Remove View Details’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso