Posted: August 20, 2020 at 6:13 am
|
Hello – I have set up an event using the slug “registration” as I already had an event page on my site. However, when I view the event page, the header says “Blog” – I would like to update that to “Registration”. I created a new page called Registration, think that would address the issue. In addition, I would like to remove the “Comments” section at the bottom of the page. Appreciate your help, thank you! |
Hi there,
That’s actually from your theme, Event Espresso events are custom post types and we basically just hook in and inject additional details into the_content. That means the output on your site is very much controlled by your theme, which theme are you using? There may be a hook you can use to change that heading.
That page will never be displayed, the events slug (which you have set to ‘registration’) is a higher priority than a page slug. So WordPress will show the ‘registration’ archive rather than the ‘registration’ page.
Just for EE events or site-wide? The comments section is controlled by the ‘Discussion’ meta box within the event itself, or you can disable comments site wide to prevent them showing at all. |
|
|
Hi Tony – thanks for your response. I am using Quode theme, so if you have any suggestions on how I might find the hook for the Blog page title, I’d appreciate it. Thanks for the info the events slug. I do not have the “Allow Comments” boxed checked on the event page and it is still showing up. I am happy to remove Comments site wide too, so would appreciate your guidance. Many thanks! |
Can you send me a copy of the theme so I can take a look?
The easiest option is to use a plugin like this: https://wordpress.org/plugins/disable-comments/ Then just set that to disable comments everywhere. |
|
|
My bad… the theme name is Central by Quode. |
You’ll need to host the .zip (you can add it to the site itself) and just post a link to download here, set the reply to private if preferred. Or use something like WeTransfer and send it to support[at]eventespresso.com |
|
|
This reply has been marked as private. |
Hmm, so, I find that themes template a little strange but I haven’t took a deep dive into the code to see why. The There’s no hook etc in the theme to fix this although it is possible with a custom template and a child theme. If you aren’t using the child theme current, installa nd enable it (it allows you to have custom templates in the child that aren’t ove`rridden when you update the parent). Copy the Rename the copy to That template will not be used specifically for EE events. On lines 60-64 you’ll have something like this:
If you know you’ll never want to set specific titles per event then for the above change that to
Then add this:
To your child themes functions.php file. To explain the last bit, EE injects event details into the content automatically, unless, you use a |
|
|
Brilliant! It worked perfectly! I really appreciate your time on this! I am very grateful! 🙂 |
You’re most welcome. |
|
The support post ‘Update Page Header’ 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.