Posted: February 8, 2013 at 11:24 am
|
I am attempting to use custom CSS in the “themeroller-base.css” file, and have tried uploading to the following locations: /wp-content/uploads/espresso/templates/css But EE does not seem to be importing the file. Am I doing something wrong, or is this even possible? Also, I tried the “Add a custom style sheet?” option, but that didn’t seem to do anything – if anyone can tell me where this uploads or what it should do, I would greatly appreciate it. |
Hi there, I’ll repost the inline documentation for customizing themeroller (found in Event Espresso>Template settings) that I hope will help: ThemeRoller Style Settings Event Espresso uses the jQuery UI ThemeRoller CSS library to style the event listings and registration pages. The ThemeRoller CSS library makes it easy to get the desired look and feel for your events and calendar. If the built-in styles are activated, Event Espresso will automatically load the “wp-content/event-espresso/templates/css/themeroller/themeroller-base.css” (or the “wp-content/uploads/espresso/themeroller/themeroller-base.css”) style sheet which applies the necessary padding and margins to the Event Espresso generated content. Adding Custom ThemeRoller Styles Go to the jQuery UI ThemeRoller site and design and download your custom style. |
|
|
Josh,Thanks for your response; however, after placing the file in that location, the css is still not being loaded. Currently, I have the css file at: /wp-content/uploads/espresso/themeroller/themeroller-base.css I even checked the EE code, and it does look in this path for that file. however, the applied CSS is still coming from: /wp-content/plugins/event-espresso/templates/css/themeroller/themeroller-base.css I have cleared my browser’s cache, but that is not the issue. I was looking at espresso.php, and on lines 801-02 it looks for an index.php file in the uploads path, then sets the themeroller style path accordingly. If it finds the file, it uses the following path: $themeroller_style_path = EVENT_ESPRESSO_UPLOAD_URL . ‘themeroller/’; However, on line 817, when looking for themeroller-base.css, it uses this path: EVENT_ESPRESSO_UPLOAD_DIR . $themeroller_style_path . ‘themeroller-base.css’ So it seems like it has the upload path in there twice…do you think this could be part of the problem? |
That’s a good catch, and from what I can tell, it’s the problem. That line (817) should read:
I’ll fix that so it’s updated in the next version of Event Espresso. |
|
|
I made that change and added an empty index.php in: /wp-content/uploads/espresso/themeroller and now it is pulling in my custom CSS. Thanks for your help! |
Thank you for helping us track this down! |
|
|
No problem, glad I could lend a hand. |
The support post ‘EE not finding custom CSS file’ 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.