Posted: June 28, 2013 at 7:57 am
|
Hi ! On my project, I have only one event. I have created a page where I explain this event with a lot of details. How could I do that ? Thank you very much ! |
Hi Benjamin, There isn’t a toggle to turn off the description within the event registration form page, but you can do it with CSS. You can add this to your style.css file of your theme, or with a custom CSS plugin: /* Remove event description from registration form */ .event_espresso_form_wrapper p { display: none; } |
|
|
Thanks π ! I imagine that it’s the same if I only need all the event’s informations but without the registration form ? |
There is an option in the event editor (screenshot: http://www.screencast.com/t/fXEELNiK5O6) to hide the registration form. |
|
|
In fact, I need a page with only the description of the event (description, date, hours, access, etc…) and one page with only the form. How would you do that ? |
|
Personally I would do as Seth suggested and turn off the registration form on the event and there is one page with just the description etc. Alternatively you could create a new post or page and use this shortcode [ESPRESSO_REG_PAGE event_id=1] though you will still need to turn off the registration form in the event options. To create a page with just the form on you can use this shortcode [ESPRESSO_REG_FORM event_id=3]. It will still show the times and prices but this could be hidden with CSS. https://eventespresso.com/wiki/shortcodes-template-variables/#reg-page |
|
Nice thank you π ! I think it could be great if you add a switch to turn off separately the times and dates, the description, and the form π Thanks ! |
|
Hi, No problem and thanks for the feedback! |
|
One more question… I’ve seen that there’s shortcode to display the event time and date and the event venue. Is there a shortcode to only display the description of an event? In fact I want to create my own page and I want to change the order of the informations. How would you do that ? |
|
“Is there a shortcode to only display the description of an event?” None I am aware of, you could use the [SINGLEEVENT] shortcode and hide the rest with CSS (easiest way), alternatively you could create a custom shortcode but you would need some PHP knowledge in order to pull the right event and get what you need. “In fact I want to create my own page and I want to change the order of the informations. How would you do that ?” Well depending on what you want you could modify the registration_page.php and registration_page_display.php template files. These control the look of the single registration page, but for every event. You can do the same for the event list with the event_list.php and event_list_display.php files. |
|
Hi ! Thanks Dean. How do I have to do to edit these .php files without loosing my changes on update ? For what you said upper, I’ve try to turn off the form for my event page, then on an other page use this code Other question : how can I display the event image ? Thanks |
|
Hi, Copy registration_page.php and registration_page_display.php to the wp-content/uploads/espresso/templates directory and edit them there, they will not be over written on updates. However you may need to update them if we have done any changes to the template files. About the form, you are right, I must have been mistaken, my apologies, I thought it would have displayed the form regardless. In which case the only option would be to add the same shortcode on both pages but wrap them in a div tag with an id and target the description or form <div id="my_noform"> [ESPRESSO_REG_PAGE event_id=1] </div> <div id="my_nodesc"> [ESPRESSO_REG_PAGE event_id=1] </div> then in the CSS add #my_noform #event-reg-form-groups { display:none; } #my_noform .espresso_additional_limit {display:none; } #my_noform .event_form_submit {display:none; } #my_nodesc .event_description {display:none; } #my_nodesc .start_date {display:none; } #my_nodesc .event_time {display:none; } #my_nodesc .event_prices {display:none; } #my_nodesc .section-title {display:none; } Event images are turned on in the Template Settings page, and you add one in the event itself via the Featured Image option on the right hand set of options. |
The support post ‘One event registration’ 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.