Support

Home Forums Community Forum Moving elements around within 'templates'

Moving elements around within 'templates'

Posted: March 18, 2015 at 9:50 pm

Viewing 2 reply threads


martinkean

March 18, 2015 at 9:50 pm

I would like to move elements around within a page, in particular in the single event page. Where does content-espresso_events-details.php and content-espresso_events-datetimes.php get called? I just really want to move the Description above the ticket information, and the dates/times.

Thanks!


Lorenzo Orlando Caum

  • Support Staff

March 30, 2015 at 7:41 pm

Hi Martin,

Try this sample coding for changing the order of elements on the single event page:

https://gist.github.com/lorenzocaum/a33405557a2a065779ea

It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

November 18, 2015 at 8:51 am

Hello again Martin,

As of Event Espresso 4.8.21, there is a custom display re-order option available in the WordPress dashboard.

Backup your WordPress and update your software

https://eventespresso.com/wiki/how-to-back-up-your-site/

You can see the change log for Event Espresso 4 here:

https://eventespresso.com/wiki/ee4-changelog/

Remove existing filters for adjusting the order

If you have used some of the suggested filters to adjust the order of your event elements, then you’ll want to first remove those from your website and they may have been added to your child theme’s functions.php file or a site specific plugin.

Set a custom order through the Templates screen

Afterwards, go to your WP dashboard (WP-admin) –> Event Espresso –> Events –> Templates. The Use Custom Display Order options in the Templates screen can be used to reorder the events elements on the single event page as well as the events listing page.

Again, be sure that any of the filters for adjusting the order have been removed from your site specific plugin or your child theme’s functions.php file before turning on the template reorder option. Otherwise, you may see duplicate content.

Thanks


Lorenzo

Viewing 2 reply threads

The support post ‘Moving elements around within 'templates'’ 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