Posted: July 18, 2017 at 3:47 am
Hello. I am having trouble with the page titles. I contacted with the theme developer and they said it has something to be fixed by the plugin developer. People Type pages: People Pages: Event Pages: Please help. Thanks in advance. |
|
Hi there, The theme controls almost all of the output, we inject event details into the_content, but all of the other output (including the titles) is controlled by the theme.
It’s easy for both them (and me) to simply say someone else needs to fix the problem however the page title is controlled by the theme, not EE. Can you send me a copy of the theme so I can take a look at the code to see if I can spot the problem? You will need to host the zip somewhere and post either post a link here or email it to support[at]eventespresso.com (be sure to include a link to this thread within the email so we know what it is for). I’ll take a look at the code but I want to be clear that this is most likely an issue with the theme and so will likely still need to be fixed by the author. |
|
Thanks a lot! I sent the email. |
|
As expected, it’s the theme. The title is called from Which sets up a $custom_title and $front_title variable and passes it to the function
To fix this you’re going to need to create a child theme and override the thim_get_page_title() function within the child themes Then within that function check for Then for the People type listing check for ‘espresso_people_type’ using is_tax and return the term title. So something like this: https://gist.github.com/Pebblo/c77a32f989f5fab97d0bd87bebd7ad9e Note the above function should be considered untested and unsupported, I’ve quick checked it fixed the output for me on a test site but have not tested any other output so you’ll need to test this fully. You will likely find other areas that don’t show the ‘correct’ output for what you need due to how the theme determines what the title should be. |
|
Thanks, worked perfectly. Two more if you don’t mind: 1. https://alphastar.academy/event-category/pmcb/ title comes as “EVENT CATEGORY: PRE-MATHCOUNTS BASIC”. I want to remove the “EVENT CATEGORY: ” part. Thanks in advanced. I appreciate your help! |
|
I’ve updated my gist to include the espresso_venues post type and espresso_event_categories taxonomy. |
|
Thank you so much Tony! |
|
You’re most welcome ๐ If you haven’t done so already, we would really appreciate if you could share your Event Espresso experience and maybe write a review of EE. We have some ideas here: https://eventespresso.com/recommend-event-espresso/ |
|
I’ve just left a review on WordPress. Thanks for reminding. |
|
Thank you for the review ๐ Please do let us know if you have any further problems. |
|
The support post ‘Page title in the theme banner’ 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.