Customize the design template for anonymous events
-
Hello, I would like users to be able to submit events anonymously.
How and where can I change the settings using placeholders so that, for example, the time zone is not selectable or the region, country, or URL fields are hidden for the address?
I’ve spent about two hours searching for the settings and changing various things, but so far I haven’t succeeded.
Thank you in advance.
-
First go to the General tab in Events > Settings then in the General Options section under Location settings you can disable URLs.
If you need to further modify the formatting of the event edit form do the folllowing:
Create the directory wp-content/plugin-templates/events-manager/forms then copy the file wp-content/plugins/events-manager/templates/forms/event-editor.php then modify the copied version.
To change the formatting of the location information in the event edit form create the folder wp-content/plugin-templates/events-manager/forms/event the copy the file wp-content/plugins/events-manager/templates/forms/event/location.php to that directory then modify the copied version.
-
This reply was modified 4 days, 16 hours ago by
joneiseman. Reason: fixed directory for location information
Hello, thanks for the quick reply.
I would like anonymous users to be able to create new locations. Will that work?
On which page?Here are the instructions for allowing anonymous event submissions: https://wp-events-plugin.com/documentation/user-event-guest-submissions/#anonymous-event-submissions
You need to create a default user for the anonymous event submissions. Make sure the anonymous user has the capability of creating/editing locations.
Create a page for Creating/Editing locations then in Event > Settings on the Pages tab in the Other Pages tab look in the “Front-end management pages” section and select the new page in the “Edit locations page” pulldown.
Thank you for the very quick response.
That means I need a separate page for an event location and can’t create the new event location when “Submit Event”?
Yes, you can create a new location when submitting an event.
Other questions:
- If I want to display the event list as a grid with three columns, rather than side by side, are there CSS values for this?
- For the event form: Are there values for customizing the fields (height, length, and the order of fields below each other)?
Hello, I have several problems on the “Submit Event” page:
- Physical Location: I can’t select a location.
- When selecting the physical location, the URL and link text appear – and when selecting URL text, the location information appears incorrectly.
- The categories display a large field with all categories.
All three problems don’t occur when I’m logged in.
https://ostbayerische24.de/veranstaltungen/veranstaltung-einreichen
I can’t reproduce problem #1. I already explained how to remove the URL field in my earlier reply. For #3 start typing the first few letters of the category to select the category you want.
To display the events as a grid you can select the grid format. In order to change the format of the event form you can modify the html in the templates and add custom css.
Hi, thanks for the reply. Since you can’t reproduce problems 1 and 2, I’ll have to check again.
How do I change the lists to a grid using CSS?
You don’t need to use CSS to change from a list to a grid.
If you’re using the event page to display the event list you can change the default to grid by going to Events->Settings then select the Formatting tab then in the Events section change the “Default View” from “List” to “Grid”. If you’re using the shortcode you can use:
[events_list view=grid]
Oh, cool, thanks.
Last question for today:
How can I configure fields in the anonymous booking form as required?You can see an example in the following thread: https://wordpress.org/support/topic/code-needed-to-make-the-telephon-field-required/
Thank you very much for your help.
I want ALL fields to be required.
So do I have to add “required” to EVERY label line? Or is there an easy way to make all fields required?I copied the following files and pasted them into Plugins-templates/event-manager/…:
- attributes-public.php
- categories-public.php
- location.php
- event-editor.php
Where can I also specify the date and time as required?
Can I also add a field above the name and email address with “Institution/Company”?
-
This reply was modified 3 days, 21 hours ago by
gudrun.
Hello, I’m a bit confused.
You wrote above that I should create the directories here so I can edit them later:
/wp-content/plugin-templates/events-manager/forms/…Now I’ve read this link in a file:
/wp-content/themes/yourtheme/plugins/events-manager/forms/location/
/wp-content/themes/yourtheme/plugins/events-manager/forms/event/Which path is correct?
Here’s the documentation on modifying template files:https://wp-events-plugin.com/documentation/using-template-files/
As you can see the template files can be copied to locations under wp-content/plugin-templates/events-manager or under wp-content/themes/your-theme/events-manager
I prefer the former since it continues to work if I change themes.
-
This reply was modified 4 days, 16 hours ago by
- You must be logged in to reply to this topic.