# Customize Template

## 1: General

### a) Buy Ticket at

<figure><img src="https://4016371164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1-bzGggknMKVWOqg5-%2Fuploads%2FgNIAfmezkEftjuxlzaSM%2FScreen%20Shot%202024-08-16%20at%2014.57.16.png?alt=media&#x26;token=fdb34bd4-6809-4e70-a589-a233403bc83f" alt=""><figcaption></figcaption></figure>

* **Hide "Internal link" option:** \
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_show_ticket_internal_link_field', '__return_false' );
```

* **Hide "External Link" options:**\
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_show_ticket_external_link_field', '__return_false' );
```

* **Setup "External link" option is Default**\
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_ticket_link_default', function(){ return  'ticket_external_link'; } );
```

* **Hide Internal link and External link option**

Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_show_ticket_link_opt', '__return_false' );
```

### b) Type

<figure><img src="https://4016371164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1-bzGggknMKVWOqg5-%2Fuploads%2FTtLOw47lt08AEm1KCAKz%2FScreen%20Shot%202024-08-16%20at%2015.29.16.png?alt=media&#x26;token=f28f9124-7e0c-40d3-bfda-58a94f4a4f79" alt=""><figcaption></figcaption></figure>

* **Hide "No Seat" option**\
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_show_ticket_type_no_seat', '__return_false' );
```

* **Hide "Simple Seat" option**\
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_show_ticket_type_simple', '__return_false' );
```

* **Hide "Map" option**\
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_show_ticket_type_map', '__return_false' );
```

* **Setup "Simple Seat" option is Default**\
  Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_ticket_type_default', function(){ return 'simple'; } );
```

* **Setup "Map" option is Default**

Add the code below to the `functions.php` file in your child theme.

```
add_filter( 'el_ticket_type_default', function(){ return 'map'; } );
```

## 2: Customize Template in child theme

Without using some above filter hook, you can customize template in child theme:

```
Copy file 
wp-content/plugins/eventlist/templates/vendor/__edit-event-ticket.php 
to
wp-content/themes/meup-child/eventlist/vendor/__edit-event-ticket.php
and edit code in that file
```

