Posted: September 29, 2015 at 2:14 pm
|
Hi! I created a video diary of the problem – you can watch it here: Basically, when I go to events.graphisoftus.com/events – or use any of category filters, the formatting on the results pages changes from that of my homepage (which is using a shortcode). The page title for the category result pages (and on /events) is also missing. Do I need to add a title somewhere so it’s not blank up there? I look forward to your reply – thanks! |
Hi Marianne, I haven’t looked into this very much yet (I’m about to after this post) but I just wanted to explain a little so you know whats happening. Your home page is actually a page that you have placed the [ESPRESSO_EVENTS] shortcode onto correct? This means X is using its own ‘page’ template for that display which is why it displays the page title (because it has a page title) The /events/ endpoint that Event Espresso adds is not actually a page, its an archive of your EE events posts. This uses the archive template from within your theme to display the events. So the reason ‘Event List’ doesn’t display a page title is because there isn’t a page title on archives, even if you have a ‘page’ with the slug of Events then the archive is actually what is displayed, not the ‘events’ page you created. Does that make sense and at least explain why the page title is not being displayed? So then when you visit the event categories, again there isn’t a page title to display. The theme would need to display the current category within the title to have that information included within the ‘page title’. It isn’t actually Event Espresso that controls this output but your theme (EE just hooks into the_content() within your theme to output the event details). So its not something you need to enable within EE itself, but actually within X. I have a copy of X and will create a test site using renew to see if can see any further into what is happened, however you may need to contact X and ask them for details on how to include the information within the theme. |
|
|
Hi! Yes, this all makes sense to me. You guys give great support – thank you for investigating further. X is such a popular theme – finding the answer to this will probably be helpful to others as well. I will follow up with X while you are doing your research and will let you know if they come back with a solution as well. Thanks again for investigating further! π |
|
Hi again! Please see the reply from X here: https://community.theme.co/forums/topic/event-espresso-integration/#post-605052 I’m getting in a little over my head, so if you can explain the next steps talking to me as a non-coder (don’t be afraid to be specific in your instructions), that would be awesome. Thank you! π |
Hi Marianne, I’ve been digging into this and have similar code to what X support provided within the same template. This works for the ‘Event List’ page, which is the archive of all EE events, however if using that you will have the same archive title across both the event list and category lists. You mention in the video you you were not sure if ‘Workshops’ should be displayed within the title when clicking the ‘Workshops’ category. I think it makes sense to do that and have some code that will do that for you. If you download this file – http://take.ms/6nZ7l It’s a modified version of \x\framework\views\renew\_landmark-header.php that includes this code:
It will set your event list title to ‘Event List’ and then when viewing EE categories will set the title to the name of the category you are visiting. So clicking the Workshops title will display ‘Workshops’. Do you have a child theme set up for X? When modifying files like this it is best to use a child theme (placing files within the child theme loads those files in place of the ‘parent’ files), X has a knowledge base topic on this here: |
|
|
Oh, this is great! I do have a child theme in place – always. Learned that the hard way when I was just getting started in the theme-based world of WordPress. π I will give this a try – thank you! π |
You’re most welcome, Marianne. Please let me know if this works for you π |
|
The support post ‘EE4 Missing Page Titles’ 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.