Failure/Error changing file permissions to make files writeable
-
I want to access and edit my site header but can’t seem to do so because the theme files aren’t writeable. I’ve tried changing the permissions, but every time I try to update the write permissions for the header, footer, etc. I get an error in my SFTP client that says “Error: set attrs for /wordpress/themes/pub/lativ/parts: received failure with description ‘Failure'”
What is causing the error? Why can’t I update the permissions?
The blog I need help with is: (visible only to logged in users)
-
Hello there,
I want to access and edit my site header but can’t seem to do so because the theme files aren’t writeable.
Our themes are symlinked, which means they can’t be edited or overridden from the file.
WordPress.com hosting uses symlinks to securely manage certain files at scale across the platform.
You can learn more about that here: https://developer.wordpress.com/docs/symlinked-files-folders/
Could you please provide more details on what you’re trying to achieve by editing the header file?
We look forward to hearing from you! -
Hello, thank you for clarifying.
And there’s no way to change that? I had a WP site years ago and could edit all the file on it if I wanted to. I really just want access to try to add in some meta tags to get my Twitter/X image display cards working without having to install yet another plugin. Is the only way to fully manage all aspects of a site now through plugins?
Thank you for your quick reply!
-
And there’s no way to change that?
Editing your theme’s files is a quick solution but not a great practice because any changes you make will be lost as soon as your update your theme.
Instead, you can follow two paths:
- Create a child theme and modify your files on the child theme.
- Use a hook to add your code, either using a plugin or writing your own.
If you know how to code, you can add your own code via a Must Use plugin or insert it using a free plugin.
I hope that helps!
-
- The topic ‘Failure/Error changing file permissions to make files writeable’ is closed to new replies.