Editor to edit functions.php (to remove ‘protected’ from title)
-
Hello, I am trying to remove the ‘Protected:’ that is automatically present when you protect a page of wordpress site. I have found code to do this but it requires editing the function.php file. I am not able to use any plug ins to do this because I am using the free plan, which does not allow plug ins. It appears in earlier versions of WordPress it was possible to edit functions.php through WP Admin -> Appearance -> Editor. However, this option is not visible to me. Perhaps because I am on the free plan?
Does anyone know how I can add this code, or if not how I can remove ‘Protected’ from the title of the page?
Many thanksThe blog I need help with is: (visible only to logged in users)
-
Hi edtulloch,
There are no protected pages on lothiancarols.wordpress.com at the moment. It looks like you’ve got this sorted now but do let me know if you need any help.
I have found code to do this but it requires editing the function.php file.
This sounds like code for use on the self hosted version of WordPress, WordPress.org:
It appears in earlier versions of WordPress it was possible to edit functions.php through WP Admin -> Appearance -> Editor.
This option is only available on WordPress.org sites and those using the Business plan. lothiancarols.wordpress.com is using the Free plan which is why you don’t have access to that editor.
Come back to me if you have any questions.
-
I’ve also looked into whether it would be possible to remove the “Protected:” prefix with custom CSS on the Gateway theme but it doesn’t look like this will be possible due to the way the theme is coded.
-
Thank you for your response. I hadn’t realised the site would be automatically posted in my question – my question actually relates to another site – https://sarahanded824084439.wordpress.com.
Thanks for explaining about WordPress.com/.org. i hadn’t realised they are different. I actually have my own domain name (www.sarahanded.org.uk) which is currently redirecting to the above link. Does that mean I could use wordpress.org and host directly on the domain that I have bought? And then I would be able to get rid of protected from the title?
Thanks
Ed -
Hi there,
Yes, you can use the self-hosted version of WordPress with your domain and edit the necessary PHP file to remove the word “Protected”.
- The topic ‘Editor to edit functions.php (to remove ‘protected’ from title)’ is closed to new replies.