Support

Home Forums Event Espresso Premium Removing the word Protected from title

Removing the word Protected from title

Posted: October 29, 2015 at 2:23 pm

Viewing 5 reply threads


Jennifer Bublitz

October 29, 2015 at 2:23 pm

You actually gave some advice to someone in April who was wondering how to change the text “Protected” before a protected page. You said to change this using a function such as:

add_filter(‘protected_title_format’, ‘blank’);
function blank($title) {
return ‘%s’;
}

I added that in my child theme’s functions.php file, but it still says “Protected” on my event at http://stilt.staging.wpengine.com/events/. Can you help?


Tony

  • Support Staff

October 29, 2015 at 2:37 pm

Hi Jennifer,

This may seem strange but can you double check the single quotes (‘) in use within that function please, the forum alters the format and styles them here but it looks like there are 2 different types (which will prevents the function from working).

I’ve just added that function to my child theme and it removed ‘Protected: ‘ from the title.

Here is the function I used: https://gist.github.com/Pebblo/fd4033c51d3ba497d52e


Jennifer Bublitz

October 30, 2015 at 5:24 am

Beautiful! Thank you!!!


Lorenzo Orlando Caum

  • Support Staff

October 30, 2015 at 6:02 am

Hi there Jennifer,

I see that you are using WP Engine which is great! I did want to mention that the staging site does not use the caching solution whereas the live/production site does.

If you have not already done so, then please create a support ticket with WP Engine to have them exclude your Event Espresso pages from the caching solution:

https://eventespresso.com/wiki/setup-wpengine-hosting-event-espresso/

Thanks!


Lorenzo


Jennifer Bublitz

October 30, 2015 at 7:08 am

Actually, Tony’s suggestion worked. But thanks!


Tony

  • Support Staff

October 30, 2015 at 7:16 am

Great, I’m glad it worked.

Whilst that code will work, you will likely run into other problems (unrelated to the Protected string) on the production version of the site if you have not excluded EE from WPEngines server side caching.

So we are trying to prevent that before it happens, you’ll just need to follow the steps given in the link Lorenzo provided 🙂

Viewing 5 reply threads

The support post ‘Removing the word Protected from 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.

Event Espresso