braginteractive/materialwp

Poorly formatted zip available on site

bmos opened this issue · 4 comments

bmos commented

The zip on the site contains an identically-named subfolder which prevents Wordpress from displaying the preview image (unless I unzip it and rezip the contents without the extra directory level).

Hopefully I'm being clear.

I don't think I can change the zip to just materialwp. I think it has to be %repository-name%-name. So even if I changed the name you would still have to unzip it.

bmos commented

The name of the zip isn't the issue, it's the extra top level of the folder hierarchy.
It's a zipped folder rather than a zipped collection of files and folders.

This is the zip you provide:
capture

This is the zip I have to convert it to if I want the theme image to appear in Wordpress:
capture2

After changing the zip Wordpress shows the Theme as this:
capture

Yeah, I dont have control over this.

bmos commented

Wow, can't believe it's been 5 years already.
Here's how to fix:

  1. Open the folder you have been zipping up
  2. Select all inside the folder
  3. Right click and compress (on mac) or send to zip (on PC)

This will give you a zip file without the extra top level directory.

If you right-click the folder and compress/send to zip, it leaves the extra directory which adds many additional steps for prospective users. If you select the contents and compress/send to zip, it works as intended.