Support

Home Forums Event Espresso Premium [EE4] How do I override the default templates?

[EE4] How do I override the default templates?

Posted: February 12, 2014 at 10:34 pm

Viewing 9 reply threads


Martin Adnum

February 12, 2014 at 10:34 pm

Hi,

Wordpress Version: 3.8.1;
Event Espresso Version: 4.1.1.reg;

In the previous version we could create template copies on the wp-content/upload/event-espresso/template directory, is there a similar structure in EE4?

Thanks.


Dean

February 13, 2014 at 2:59 am

Hi Martin,

The templates are found in templates/Espresso_Arabica_2014

These can be added to your theme or child theme and modified accordingly.


Martin Adnum

February 13, 2014 at 3:35 pm

Thanks @Dean. Would editing the widget be a similar process?


Martin Adnum

February 13, 2014 at 3:42 pm

Also, it seems my theme is pulling in the Espresso_Arabica_2014 style.css, is there a way to remove this?

Thanks.


Dean

February 14, 2014 at 1:54 am

Hi,

The widget content is found in /widgets/

“my theme is pulling in the Espresso_Arabica_2014 style.css” It shouldn’t unless you copied that over for some reason.

What files did you copy to your theme?


Martin Adnum

February 16, 2014 at 3:20 pm

Hi @Dean,

Wouldn’t that be over-written when I update the plugin?

Re: Espresso_Arabica_2014 style.css
It seems its being queued only on one page-
<link rel=”stylesheet” id=”Espresso_Arabica_2014-css” href=”http://localhost/wordpress/wp-content/plugins/event-espresso-core-reg/templates/Espresso_Arabica_2014/style.css?ver=3.8.1&#8243; type=”text/css” media=”all”>

I have imported all files except the style.css and functions.php.

Thanks


Martin Adnum

February 16, 2014 at 5:54 pm

In addition to the issue above, it seems I cannot override the styles on the Checkout page via my main styles.css – is there a method to do this without editing plugin files? Or removing the inclusion of the style sheet altogether?

Thanks.


Sidney Harrell

February 17, 2014 at 4:48 am

The Espresso_Arabica_2014 is a child theme of the WP default twentyfourteen theme. You might want to restore your twentyfourteen theme to it’s original form, then copy the entire Espresso_Arabica_2014 folder from plugins/eventespresso/templates into wp-content/themes. Then you can activate the Espresso Arabica theme and modify the copy of the style.css file there.


Martin Adnum

February 17, 2014 at 3:34 pm

Hi @Sydney,

I’m currently working on a theme, and I am not using TwentyFourteen at all.

Thanks.


Josh

  • Support Staff

February 18, 2014 at 11:54 am

Hi Martin,

The Event Espresso styles can be overridden if they’re included in a stylesheet that loads after its stylesheet (or if the CSS you write has greater specificity).

Since you asked about a way to remove the Event Espresso stylesheet, yes it’s possible to do so and the way to do it is outlined here:

http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles

So to remove Event Espresso’s default stylesheet the function would be:

add_action( 'wp_print_styles', 'my_deregister_styles', 100 );

function my_deregister_styles() {
    wp_deregister_style( 'espresso_default' );
}

Please note that if you remove the default Event Espresso stylesheet you’ll likely need to copy and paste some of its styles in order to hide/style some of the notifications that get displayed.

Viewing 9 reply threads

The support post ‘[EE4] How do I override the default 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