最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp admin - Where are the Parent themes CSS & PHP files hidden on Wordpress?

programmeradmin0浏览0评论

I have a friend who has a wordpress website, he wants some help and as I have been coding with html, css, javascript (but with bootstrap) I am helping him out. However, he has a very old version of the Customizr theme on wordpress and as I haven't used wordpress much I cannot find the full code and CSS for the website. The options on the custom editor are extremely limited and I would really need to see more code for the website, it just seems it is all...hidden?!

He thinks I have full admin access, I am logged in as "admin".. could his old designer (who has gone AWOL) be hiding them to stop him changing them?

When I got to the parent theme, the header is only 10 lines long! None of the code for the navbar etc is in there, and the parent CSS file is empty, the child CSS file just has around 50 lines of custom CSS and that is it.

it says in the parent theme:

/** * The styleheets of Customizr are located in inc/css. Each skin has its own stylesheet : blue.css, green.css, ... *

but inc/css are nowhere to be seen!!

Could someone please enlighten me where the CSS and header/footer etc code is hiding? I do have quite a lot of coding experience but I really do not know much about wordpress, so please point me in the right direction of how I can find the main CSS code and the real header file etc instead of telling me not to modify the code etc.

Sorry if I am being ridiculously stupid but a google search has yielded me no information on this which bought me here.

Thanks for any help

I have a friend who has a wordpress website, he wants some help and as I have been coding with html, css, javascript (but with bootstrap) I am helping him out. However, he has a very old version of the Customizr theme on wordpress and as I haven't used wordpress much I cannot find the full code and CSS for the website. The options on the custom editor are extremely limited and I would really need to see more code for the website, it just seems it is all...hidden?!

He thinks I have full admin access, I am logged in as "admin".. could his old designer (who has gone AWOL) be hiding them to stop him changing them?

When I got to the parent theme, the header is only 10 lines long! None of the code for the navbar etc is in there, and the parent CSS file is empty, the child CSS file just has around 50 lines of custom CSS and that is it.

it says in the parent theme:

/** * The styleheets of Customizr are located in inc/css. Each skin has its own stylesheet : blue.css, green.css, ... *

but inc/css are nowhere to be seen!!

Could someone please enlighten me where the CSS and header/footer etc code is hiding? I do have quite a lot of coding experience but I really do not know much about wordpress, so please point me in the right direction of how I can find the main CSS code and the real header file etc instead of telling me not to modify the code etc.

Sorry if I am being ridiculously stupid but a google search has yielded me no information on this which bought me here.

Thanks for any help

Share Improve this question edited Nov 22, 2016 at 2:58 ck777 asked Nov 22, 2016 at 2:44 ck777ck777 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

If i understand your question correctly:

Go to your Wordpress installation public_html folder, open up wp-config.php and past this into it on its own line at the bottom:

define('DISALLOW_FILE_EDIT', false);

that will then activate the "Editor" tab on the flyout menu in the themes "Appearance" link.

Be careful WP has no option (well it may do now but i highly doubt it) to reverse any changes or has syntax highlighting, your best option is to ftp the themes style.css to your workstation, copy it, then work on it remotely and upload when done, the copy is your insurance policy if it all goes wrong you can just reupload the original version.

when done either remove the line you pasted into the config file or change false to true to hide the editor again.

发布评论

评论列表(0)

  1. 暂无评论