简体   繁体   中英

How to bypass a theme editor block?

I have downloaded a theme but would like to edit the PHP files, but there is a theme editor block. I can't access it by typing the theme editor into the url, I just wondered if there is a way of getting around it.

在此处输入图片说明

It is highly discouraged to edit themes like that, because any changes made that way will be deleted upon update. The recommended way is to create a child theme and edit your PHP CSS and HTML there.

By using a child theme you will ensure that your modifications are preserved. Using a child theme can speed up development time. Using a child theme is a great way to learn about WordPress theme development.

all the documentation to create a child theme is here Wordpress Codex

You will have to open functions.php for that theme outside of wp-admin. Like in a text editor or ide and upload it back to your themes folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM