Support

Home Forums Event Espresso Premium EE4 integration with theme; page template, event's headline, read more links

EE4 integration with theme; page template, event's headline, read more links

Posted: August 22, 2014 at 12:34 pm

Viewing 8 reply threads


Kathryn

August 22, 2014 at 12:34 pm

Hello,

I have several questions regarding better integrating EE4 with my theme. My site is new and is still being built so it currently has a “Coming Soon” page up, though I could privately provide login credentials for you to view the site, if necessary.

1. Currently, my events main page and individual events pages are set to my “default” page template, which includes a sidebar. I would like to use my “full width” page template to get rid of the sidebar, but I cannot find where to change it.

2. On an event’s page, at the top appears the headline “Blog” (in the theme, this headline is designed to appear on my blog’s main page and on individual blog posts). I don’t know why it is showing up here. It does not show up on the events main page. Is it possible to get rid of that with some custom CSS or whatnot?

3. On my events main page, I have it set to show just an excerpt of the description of each event. However, the “read more” link is duplicated; EE displays “(more…)” and just beneath that link, my theme displays “Read More.” If I change it to show either the full event description or no description, the “(more…)” link disappears but the “Read More” link remains. The “Read More” link is also redundant with the “View Details” button. Ideally, the button would be the only link; is it possible to remove both of the read more links?

Thank you!


Kathryn

August 22, 2014 at 12:44 pm

Forgot to include this:

WordPress Version:
3.9.2
PHP Version:
5.4.29
MySQL Version:
5.5.36
Event Espresso Version:
4.2.9.p


Lorenzo Orlando Caum

  • Support Staff

August 22, 2014 at 3:14 pm

Hi,

You can change the layout of the pages by creating a new template file based on a theme file that has an existing layout that you want to use.

For example, your theme might have a template called page-nosidebar.php. This is a full page layout with no sidebar. You would login to your WordPress root with your preferred SFTP or FTP client (FileZilla and Cyberduck are free options). Then browse to your theme’s folder and duplicate that file (in this example page-nosidebar.php) and then rename it to archive-espresso_events.php.

This will tell Event Espresso to use that new theme template for the event listing page. Also, page-nosidebar.php is just an example. The file may be called something else.

This should also correct the blog styling as Event Espresso will now be using a page layout instead of a blog archives layout.

Issue three may correct itself as well. Let us know what happens after the archive-espresso_events.php is running. Remember this file should be based on an existing theme page layout that you want to use.


Lorenzo


Kathryn

August 22, 2014 at 4:13 pm

Hi Lorenzo,

I duplicated my full width page template in my theme’s files and renamed it archive-espresso_events.php. It’s not working correctly, though. I’ve lost my main events page (it just shows the header and footer of the page), and my individual events pages remained the same.

I am using the slug rewrite listed here: https://eventespresso.com/wiki/change-events-cpt-slug/, if that makes a difference, and I have yet to install the most recent update of EE4.

I cleared my cache and my cookies and disabled all plugins (except EE, of course).

Thanks


Lorenzo Orlando Caum

  • Support Staff

August 22, 2014 at 7:49 pm

What is the name of the theme?

If its a standard WP theme with a single.php, page.php, etc, then it should work.


Lorenzo


Kathryn

August 23, 2014 at 4:50 pm

It’s the Port theme by Theme Trust: http://themetrust.com/demos/port/. I do have single.php and page.php and the file I was duplicating and renaming was page-full-width.php.

The headline of my main events page did change from Blog to the title of one of the events, but that’s all that is showing on that page. The individual events pages still look like they did before.


Lorenzo Orlando Caum

  • Support Staff

August 25, 2014 at 8:18 am

How about the page.php file?

Does that also cause the layout to break?


Lorenzo


Kathryn

August 25, 2014 at 9:11 am

Hi Lorenzo,

The same thing happens using page.php.

I downloaded a plugin that allows me to choose the template on the individual event pages (or any CPT), which solved the problem with it displaying “Blog” as the title, and allows me to use full-width, but the main events page is still giving me trouble by including the sidebar (and again, it is all screwed up when I duplicate/rename the page file).

I can do a work-around by pulling events from a specific category into a page by using the category shortcode, but it only shows the title of the events, and none of the descriptions. Is there a way to include the description using the shortcode?

The other problem this work-around is giving me involves the title of the category list. I customized the title to make it more relevant, but it is redundant with the page title and also screws up the spacing (the list title lives in the “white space” padding above the first event, while the other events maintain a padding, so it doesn’t look right). Can I hide the category list’s title on such a page to keep the same spacing throughout?

Or if we solved the archive-espresso_events.php problem the table add-on may work for my needs.

Thank you.


Josh

  • Support Staff

August 25, 2014 at 6:32 pm

Hi Kathryn and Lorenzo,

Taking a full width page template, copying it, and making it into an event archive will likely not work because a full width page template is programmed to display one WordPress page, not an archive of posts.

Instead, you can take an archive template, copy it, and rename the copy to be archive-espresso_events.php. There you can remove any calls to load a sidebar and make any other modifications to your specifications.

If you’re unsure which template in your theme is programmed to display the standard post archives, please see this chart that outlines the WP template hierarchy:

http://codex.wordpress.org/Template_Hierarchy#Visual_Overview

Viewing 8 reply threads

The support post ‘EE4 integration with theme; page template, event's headline, read more links’ 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