Support

Home Forums Event Espresso Premium Is it possible to rename /events in EE4?

Is it possible to rename /events in EE4?

Posted: September 29, 2014 at 9:56 pm


wgilliam

September 29, 2014 at 9:56 pm

I have a page that already uses /events … which conflicts with where “Event List” (via General Settings > Critical Pages) sends folks.

This isn’t customizable in the admin like the other critical pages so I’m wondering if there is a way to change it someplace else?

Thanks


Lorenzo Orlando Caum

  • Support Staff

September 29, 2014 at 10:26 pm

Hi,

Yes, this can be changed. Please see the tutorial here:

https://eventespresso.com/wiki/change-events-cpt-slug/


Lorenzo


wgilliam

September 30, 2014 at 12:08 pm

Cool thanks!

Also, is it possible on the /events and /events/<event_slug> routes to configure those pages to hide the sidebar that shows up by default in the theme I’m using?

I’m used to EE3 and have just directed folks to the default event registration pages in the past … it seems like EE4 wants you to build specific registration pages for events and use /events and /events/<event_slug> for archive only. Is that right?


Lorenzo Orlando Caum

  • Support Staff

September 30, 2014 at 1:07 pm

Hi,

That can be done. Does your theme have an existing theme template that has no sidebar?

Check this location using an SFTP or FTP client (Cyberduck or FileZilla are free options):

wp-content/themes/yourthemefolder/

You are looking for a file like the examples below:

page-no-sidebar.php
page-full-width.php


Lorenzo


wgilliam

September 30, 2014 at 2:20 pm

Well when I build pages using this theme I can choose full-width.

As an aside, I’m using a Child theme so its easy enough to customize whatever php files event espresso is using … I just need to know which ones and what to change to go full-width in both /events and /events/<slug>.

thanks


Lorenzo Orlando Caum

  • Support Staff

September 30, 2014 at 3:01 pm

Hi,

There isn’t a global option for this in your WordPress dashboard. However, if you have an existing theme template ready, then duplicate and rename to:

single-espresso_events.php

Then open that file for editing. Locate the line of code that is calling the content.

Change it to this and save changes:

 

Once this is in place, Event Espresso will use this layout for all single event pages.

Let us know if you get this working.


Lorenzo


wgilliam

September 30, 2014 at 3:30 pm

OK I created the single-espresso_events.php file in my child theme, but when I navigate to an event it comes up empty. This is what I have:

  <?php get_header(); ?>
  
    
   < ?php espresso_get_template_part( 'content', 'espresso_events' ); ?>
  <!-- END #content -->
    
  <?php
    <!--get_sidebar();-->
    get_footer();
  ?>


wgilliam

September 30, 2014 at 3:36 pm

Actually I fixed this. Should be <?php and no < ?php.

What about all the other pages used in event espresso? What about the /events page … what do I need to do for that one?

thanks


wgilliam

September 30, 2014 at 3:55 pm

There are a few other problems I’m having, or at least I can’t figure out how to resolve:

1. There is also a problem when viewing a single event …

When I have a custom “Excerpt” specified for an event, it displays instead of the full description of the even on the event page (e.g. /events/<event_slug>).

2. When viewing /events, if I configure the “Display Ticket Selector” = True then the button for “View Details” is hidden … how can I allow users to both be able to “View Details” of an event AND simply “Register” if they want to?


wgilliam

September 30, 2014 at 4:00 pm

Actually, the code you sent me for the single-event page seems to be missing something necessary to displaying the description of the event … so all I see is the excerpt.


wgilliam

September 30, 2014 at 4:12 pm

As a side note … I’d recommend a configure option to turn off the sidebar for EE pages. There are a bunch and it looks like I’m going to have to add each to my child theme and remove the sidebar manually.

-wg


Lorenzo Orlando Caum

  • Support Staff

September 30, 2014 at 7:49 pm

Hi,

There are some template options in WP-admin –> Event Espresso –> General Settings –> Templates. However, they do not cover every option:

http://cl.ly/image/3e0h3H2z3K3I

You can also create a theme template for the event list page (example.com/events/). That template should be called:

archive-espresso_events.php

Again, create the file above from an existing theme template of your choice. Then rename to the filename above.

Open for editing and change the line for the content to the following:


There is no extra space at the beginning. The forums are adding that space:

http://cl.ly/image/3N2u3D0z1M3L

Here is some feedback on your other questions:

If both an excerpt and a description is set, then the description is used on the single event page. This option for the event list page can be controlled through this setting:

http://cl.ly/image/3e0h3H2z3K3I

There isn’t currently an option for both a ticket selector and a view details button. The button switches based on the behavior. However, the event title should take you to the single event page.


Lorenzo


wgilliam

October 1, 2014 at 11:18 am

Thanks for the reply.

What I eventually ended up doing was copying everything from public/Espresso_Arabica_2014 into my child theme. I couldn’t find the necessary PHP files to update, but this sample one seemed to contain them all. I’ve been able to figure out how they work on update them to meet my needs as stated above.

I’m encountering some other bugs, but I’ll post them in a new thread.

Thanks again for your help.

-wg

The support post ‘Is it possible to rename /events in EE4?’ 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