Support

Home Forums Event Espresso Premium Event Titles Missing from Event Pages in EE4

Event Titles Missing from Event Pages in EE4

Posted: April 12, 2018 at 3:41 pm


Jean Watson

April 12, 2018 at 3:41 pm

I was reviewing your post (https://eventespresso.com/topic/ee4-missing-page-titles/) from 2015, but I am not able to find the header.php file you reference in your response. Wondering if the files may have changed?

I am also using X Theme with the Ethos stack. I wasn’t sure if this is the file that needs to be modified: VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP

If so, could you help modify the code for me so the event titles appear?

Here’s a link to one of the events without a title: https://www.watsoncaringscience.org/events/international-caritas-consortium-icc-2018/

Thank you!


Josh

  • Support Staff

April 12, 2018 at 3:44 pm

Hi Jean,

We’ll need an updated copy of the theme you’re working with because that’s the code that will be modified. Is there a place we can download the theme from?


Jean Watson

April 12, 2018 at 3:49 pm

can I send you a zip file?


Josh

  • Support Staff

April 12, 2018 at 3:56 pm

We’ve actually found that emailing attachments that consist of large zip files (like most themes from Themeforest) exceed the email service’s limits. A more reliable way is a dropbox link. You can post that link here or email it to support at eventespresso.com.


Jean Watson

April 12, 2018 at 4:01 pm

I just sent it via email. Thank you!


Tony

  • Support Staff

April 13, 2018 at 7:01 am

Hi Jean,

The above file is the correct file, however, on your site that template is not being called.

I can see you are using x-child, does that child theme already have a copy of the above file within it? If so what are the contents of that file?


Jean Watson

April 13, 2018 at 8:24 am

There are no files in that framework/views folder in the child theme, they are all empty.
There are the following files in /x-child/: functions.php, style.css and screenshot.png (which is a graphic of X Child Theme).


Tony

  • Support Staff

April 13, 2018 at 10:23 am

Hmm, so I think there’s a setting I’m missing in X somewhere then.

Here’s one of my test sites with X, using Ethos stack and viewing an EE event – http://take.ms/vies2

The ‘Tony’ text above the event title is just me adding some text to views/ethos/_content-post-header.php just to confirm its loading that file.

Do you know of a setting used to disable the header/meta content of a post?


Jean Watson

April 13, 2018 at 11:31 am

There is a setting in Theme Options, Blog, Content called “Post Meta” – but that setting impacts the post’s author, category and date underneath the blog title – which I currently have set to “off”. I did test it, just in case it impacted the titles on the event pages but it didn’t.


Tony

  • Support Staff

April 13, 2018 at 11:49 am

Ok, the version of X that you sent to us, is that the version from your site, or is that the fresh version you downloaded from Themeco?

Have you edited any of the template files on the version in use on your site?

I went through the Ethos stack template files and confirmed that they should be loading the header without any settings (as far as I can tell they should be).

The call should be in \framework\views\ethos\content.php

It should have something like this:

<div class="entry-wrap">
   <?php x_get_view( 'ethos', '_content', 'post-header' ); ?>
   <?php x_get_view( 'global', '_content' ); ?>
</div>

Towards the bottom of the file, does your template have that?


Jean Watson

April 13, 2018 at 12:02 pm

Yes, that is the same version I am using on my site. I have not edited any of the template files.

Yes, that is the same code I have in the bottom of the file.


Tony

  • Support Staff

April 13, 2018 at 12:27 pm

I think I’ve found the cause, on the event itself, have you set the template to use ‘Layout – Fullwidth’ – http://take.ms/CXy6e

If so, that’s why as it’s a page template and doesn’t load the header.

If using that setting can you temporarily switch it to use the ‘Default template’ and see if the title loads then.


Jean Watson

April 13, 2018 at 12:56 pm

Yes, the title does load on Default Template. However, I would like to use the full layout. Any suggestions? Nice discovery, by the way!


Josh

  • Support Staff

April 13, 2018 at 5:02 pm

Here’s one way that I found, and if it seems a little convoluted, that’s because it is and you might want to contact X theme support, they may have a more elegant solution:

1) You add the following folder structure to your child theme:
\framework\legacy\cranium\headers\views\ethos\
2) You copy the _landmark-headers.php file from the parent theme from the \framework\legacy\cranium\headers\views\ethos\ folder and put the copy into the matching location in the child theme.
3) Open the _landmark-headers.php file and edit line 38, which has this:
<?php elseif ( is_page() ) : ?>
You change it to this:
<?php elseif ( is_page() || is_singular('espresso_events') ) : ?>
or if you have other post types that are also missing their titles, change it to:
<?php elseif ( is_page() || is_singular() ) : ?>

Side note, your folder structure in the child theme will look like this:
https://slack-files.com/T02SY781D-FA6NE9Z34-16552de0e8


Jean Watson

April 14, 2018 at 3:44 am

Thank you Josh, I really appreciate your time with this. I will give this a try and contact X support as well and see what they say. Many thanks!


Jean Watson

April 14, 2018 at 8:11 am

Hi Josh – just wanted to let you know that X confirmed your approach. This is what they said:

The provided instruction is correct since Ethos page titles are part of the landmark templates. And since landmark template isn’t integrated with other post types then yes, it’s the only way. And this one should fix all titles regardless of post types

<?php elseif ( is_page() || is_singular() ) : ?>

Thanks again for your help with this, I appreciate it!


Tony

  • Support Staff

April 16, 2018 at 2:57 am

Thank you for keeping us updated, Jean 🙂

Any further problems please let us know.

The support post ‘Event Titles Missing from Event Pages in EE4’ 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