Blank page on localhost/wordpress/wp-content/themes/mysitename

I'm creating my own WordPress theme and I've set it up locally with MAMP. It all works fine and the theme appears when I enter localhost/wordpress in my browser. But when I enter localhost/wordpress/wp-content/themes/mysitename it is just a white blank page.

In the WordPress dashboard under themes the image next to my theme where it lets you activate it is also blank.

How can I get it to appear? Thanks in advance!

Answers


WordPress uses a frontend controller system where all site traffic passes through the index.php file in the root of the site.

Directing your browser to "localhost/wordpress/wp-content/themes/mysitename" bypasses the main controller, which means you are bypassing WordPress altogether and attempting to directly access files on the server. That directory would need to have an index.html or index.php file within it to produce some kind of output.

In order to have an image beside your custom theme in the admin, you need to create a screenshot of your theme and name it "screenshot" (can be a jpg or png) and place it in the root folder of your theme. Look inside other WP theme folders for an example of what I am talking about.


Need Your Help

Get Google Apps user's used quota

user reporting google-apps google-admin-sdk quota

I've been trying to obtain a Google Apps user's used quota and I find that it is possible with Admin SDK Reports API. However, it seems that it can only give you information from two days ago and b...

CSS units inconsistency

css google-chrome

Assuming that 100% = 16px = 1em = 1 (applies to unitless line-height) I think that 162.5% = 26px = 1.625em = 1.625.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.