Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Created April 14, 2015 16:57
Show Gist options
  • Save lorenzocaum/52d319ef5e6925e024b4 to your computer and use it in GitHub Desktop.
Save lorenzocaum/52d319ef5e6925e024b4 to your computer and use it in GitHub Desktop.
Relocate the event description below the registration form in Event Espresso 3

This can be done by adjusting the some templates files. Here the steps to do so:

  1. Login to your WordPress site with your preferred SFTP or FTP client. FileZilla and Cyberduck are free options. Try Transmit for Mac

  2. Browse to this location: /wp-content/plugins/event-espresso/templates

  3. Locate the following files and download a copy of them to your local computer:

registration_page_display.php

registration_page.php

  1. Using your preferred FTP or SFTP client, browse to this location: /wp-content/uploads/espresso/templates

  2. Upload the two files that you recently downloaded to the location above

  3. Open the registration_page_display.php file for editing and go to about line 34.You’ll see some coding like this:

			<?php if ($display_desc == "Y") { //Show the description or not ?>
			<div class="event_description clearfix">
				<div class="<?php espresso_template_css_class('event_description','event_description clearfix'); ?>">
					<p class="<?php espresso_template_css_class('section_title','section-title'); ?>">
						<?php _e('Description:', 'event_espresso') ?>
					</p>
					<?php echo espresso_format_content($event_desc); //Code to show the actual description. The Wordpress function "wpautop" adds formatting to your description.   ?> </div>
				<?php
	}//End display description
  1. Change it to this:
			<?php 
  1. At around line 247, you'll see the following coding:
			//End Switch statement to check the status of the event
  1. Change it to this:
			//End Switch statement to check the status of the event
			if ($display_desc == "Y") { //Show the description or not ?>
			<div class="event_description clearfix">
				<div class="<?php espresso_template_css_class('event_description','event_description clearfix'); ?>">
					<p class="<?php espresso_template_css_class('section_title','section-title'); ?>">
						<?php _e('Description:', 'event_espresso') ?>
					</p>
					<?php echo espresso_format_content($event_desc); //Code to show the actual description. The Wordpress function "wpautop" adds formatting to your description.   ?> </div>
				<?php
	}//End display description

Be sure to save changes to the file.

Here is a preview of what it will look like:

http://cl.ly/image/0i1D222i3A2z

@lorenzocaum
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment