Posted: May 31, 2016 at 12:28 pm
|
I have set up the event archive page as “Events”, but it says “Archives: Events”. I have checked with the theme maker (accesspress themes: mag pro theme) and they say it’s not being applied from their end. Please help! |
Can you open up the theme’s archive.php template, and check for some code that prints “Archives: {Custom Post type}”? |
|
|
It didn’t have that specifically, but there was this:
|
Yep, so the theme is indeed adding the “Archives: ” bit. Does this theme have a /inc/template-tags.php file, where around line 220 it has this:
You could change the actual function there, but if there’s a filter hook somewhere in the function, that’d probably be a better approach. Can you post the contents of the theme’s /inc/template-tags.php file to a gist or paste bin, then link here? |
|
|
Yup! It sure does…I will be sure to cross post this back to them, because they didn’t even know it was there. |
Thanks for posting. There is a filter hook there on line 232 that you can use to change the archive event page title. Here’s an example of the code you use:
You can add the above to a functions plugin or if you’re using a child theme, you put the code into your WordPress child theme’s functions.php file. |
|
|
Thank you so much! |
Glad you were able to work that out. |
|
The support post ‘Change Archive Event Page Title’ 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.