最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin8PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far