Posted: July 21, 2015 at 3:07 pm
|
Please refer to adambrowntennisacademy.com. I have migrated to EE4 today. Thanks! |
|
similar issue on the venues page, it has overwitten all content on those pages, and has a grey background? |
Hi Declan, it looks like the single event pages are using a single.php template that is in your theme folder. Single.php is usually for blog posts. This page on your site has a similar layout with a dark background: http://www.adambrowntennisacademy.com/news/ Could you try following this tutorial to get a set of starter templates running? https://gist.github.com/lorenzocaum/16aac08f099d7c154f04 One of the steps will be to duplicate a page.php theme template which should change the design that you are seeing. Thanks — |
|
|
Thanks, that resolved part of it. The (http://www.adambrowntennisacademy.com/news/) page you mentioned shouldn’t have the dark background, again it only happened when EE4 got installed? If you look to the http://www.adambrowntennisacademy.com/booking/ . There are no sidebars showing or headers ect??? (same with the “news” page…) Am i right in thinking they’re behaving as a blog? Although not keeping the settings they should? In the booking process, no sidebars ect, looks like its not being contained properly… ie, the left side text is at the very edge of the browser. Do you know when the my-events shortcode will work on EE4? Thanks |
Hi Declan, When you followed the steps, did you select a page.php file that had an existing sidebar? It might be called something like page-right-sidebar.php. — |
|
|
Hi, there was only 1 “page.php” file… It has virtually nothing in it? |
|
Hi… I’m a little further forward but not really… I have the sidebar, It’s showing the “default” sidebar, not one I’ve created for the booking page but can figure that out. It’s showing on the left that appears to be part of the page, not in its own sidebar. This issue is causing huge headaches… the instillation of EE4 has done something to the “news” (blog) section to as is happening on the events. I need this sorted asap. besides the support can you point me in the direction of a good guide also whilst awaiting responses. Thanks! |
|
Hi, Is the Booking page an actual page? According to the theme author Demo page, there should be an option for a sidebar. This could be in the theme settings or it could be in the Page Attributes section of the Page editor (screenshot http://take.ms/guv3T) |
|
Hi Dean, |
Could you send me a copy of the theme please? I’d like to take a look at how this is loading. If so please use support[at]eventespresso.com It looks like you have changed the /events/ slug to /booking/ which means the booking ‘page’ is not being used. The /events/ ‘page’ (which in your case is now /booking/) is actually an archive of Event Espresso events, so your theme should be loading up the archive template for that output. The page slug may be the same, but the archive is taking priority, so changes being made to the booking ‘page’ are not shown on the front end (because its not the page that is loading) |
|
|
Hi Tony, sent the email with the theme and created a login should you need it. I’ve been looking through the templates and from what I can gather they should be showing the sidebar… They should really look like any other page on the site! Thanks |
Hi Declan, I’ve been looking over this and the reason the /booking/ page has no containers is the template files don’t have any. For example, currently the archive-espresso_events.php template file (which is used for /booking/) contains:
Which is what is being displayed on the page currently, the site header, the slider header, a sidebar and the EE event content. So to fix the booking page I copied your page.php template, slightly modified it to always load the ‘Booking’ sidebar and removed some irrelevant details. I’ve uploaded that here: I then made a similar change to the single-espresso_events.php template. I’ve uploaded the files here – http://take.ms/qk2Yo Please remove ALL of the previous template files from the guide posted by Lorenzo. So create a backup of the current theme, then remove all of the template files that contain ‘espresso’ in the name from within the root directory. Then copy the 3 template files from above into the theme directory and retest your events page, does it now work as expected? |
|
|
Hi Tony, without sounding thick… “then remove all of the template files that contain ‘espresso’ in the name from within the root directory.” |
|
also, no link to download the “page.php” template? |
|
so far, we’re off to a good start |
No, only the files within the theme.
Apologies I didn’t explain that well, I copied your page.php into the template specifically for the EE events which archive-espresso_events.php. Also similar with single-espresso_events.php There’s no download for page.php as that’s already part of your theme that I based the new files on.
Great 🙂 |
|
|
I really cant thank you enough!… I was pulling my hair out! Out of interest, do you know when to expect the my events shortcode for EE4? |
Hi Declan, Tony used some existing templates on your site and created new versions for Event Espresso 4 to use. Event Espresso should not affect the layout or styling for other pages or posts. If you temporarily deactivate Event Espresso 4, does the layout change for the blog posts? Please go ahead and create a new support post with any new questions and we’ll get those answered for you: https://eventespresso.com/support/forums/ — |
|
|
Deactivated it… EE4 does effect it. Before I migrated to EE4, the page sat as it should have with sidebars, and on a cream background. Cheers. |
To explain a little, the problem with the EE event listing is due to how your theme handles archive pages. You initially mentioned the /booking/ page not showing any sidebar, that’s because your theme loaded an archive.php template that only included a ‘Archive/Search’ sidebar that only used the global settings within your theme. Usually we require users to purchase a support token (or more if required) to work through theme conflicts such as these as it isn’t an issue with Event Espresso itself, but the strange ways themes come up with displaying data. However installing the starter templates mentioned above actually caused a couple of further problems with how your theme would be displayed EE data, so on this occasion it investigated further. Because the EE event listing is an archive, ‘pages’ with the same slug are ignored, the archive is loaded before the page. This means that editing your ‘booking page’ actually has no effect at all on that display. Usually the fix is to create custom templates based on your sites archive.php and single.php files, but your theme is doing some strange things with those and you want the output to be similar to page.php…. So what I did was create ‘archive-espresso_events.php’ base on page.php (which calls a template part within ‘\templates\parts’ called content-page.php This contains all of the containers used to display the data as you wanted, but also expects to setup a page, meaning the sidebar is set using post_meta (which doesn’t exist) so I hardcoded the page to load the ‘booking’ sidebar and swapped out the loop to use the loop-espresso_events.php file to display the events. The bet way to see this is by comparing archive-espresso_events.php and content-page.php to see what has changed. I then did almost the exact same with single-espresso_events.php to ensure single events displayed as expected. Now for the News page, unfortunately I don’t any reason for this at all, I’m assuming that again the theme is doing something very strange to get that page to load. So when EE4 is activated the theme is ‘doing its thing’ but actually including EE events within its search which could be causing problems. The first thing I would check is what template that page is using to display. You can do this using the ‘What the file‘ plugin (it add output to the WP Admin bar when you load the page so you can view which template is in use) Which templates are in use? |
|
|
Hi, the templates in use are I’ve just gone into the .index file and added the sidebar (copying your code from archive-espresso_events.php) Do i almost want to copy the pages you’ve sorted but remove the evnentespresso info and replace to show the bog bit? All help is greatly appreciated. Thanks, Declan |
You don’t want to edit the template files like that. index.php will be used to output multiple different sections of your site. I just wanted to check which template was being used to load the page. Was /news/ a standard page create by yourself? |
|
|
Oki dokes, yes the news page created by myself. |
Hi Declan, Apologies for the delay getting back to you. Looking at your news page it looks like you’ve fixed the view, can I ask what you did to fix it? |
|
|
not set it as a “posts” page… its not ideal as its a basic list… I’ve set it up as a page and using the “recent posts” widget. It wont show the “featured” image though. … similarly I’ve done this on the categorised versions of my events pages (being dealt with on seperate post) If you like I can revert it so try and solve? |
|
pretty much resolved…. I copied most of the code from “single-esspresso-events” (up til <?php espresso_get_template_part( ‘loop’, ‘espresso_events’ ); ?> ) into the single-events and template part for the single post. I’ve done the same for the “archive” but edited the “index” as it used that. It works! Slowly learning code! |
I’m glad you got this working 🙂 Most of the issues mentioned here seem to be caused by the theme doing things in odd ways or template files setup in unexpected ways. Be careful when editing the index.php file of a theme, that file is used as a sort of ‘catch all’ template file, if your theme does not have a template file for the data is it trying to output, it uses index.php |
|
The support post ‘EE4 migration – Multiple issues!’ 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.