Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Build a WordPress Plugin Launching and Supporting a WordPress Plugin Adding a Plugin to the WordPress Repository: Part 1

What should I name my screenshot files in assets?

My screenshot is not appearing on the plugin page...

Thanks Team Tree House!! I have had my plugin approved. Hover Board Direction Aware Hover Effect (working title).

I could not have done it without this great tutorial. Thanks Zac Gordon!!

4 Answers

Hi James,

Congrats on the plugin approval!

They should be named screenshot-1.png, screenshot-2.png, etc. with the description linked in the Readme.txt file.

If needed, at around 3:52 in this video Zac goes over this.

Hope that helps :)

-Rich

Thanks for your rapid reply! It may be something I am missing. I will keep checking incase of cache but:

That is what I thought, the image is in the assets folder at the same level as the "branches", "tags" and "trunk" folders

it is named: screenshot-1.png

I linked in the Readme.txt like this:

== Screenshots ==

  1. Here is a demo of the plugin in action!

== Changelog ==

Your help is appreciated Rich, thanks again.

No problem :)

What you have written sounds correct.

It might sound obvious but (just wanted to check to cover all bases) have the files been committed? They may need adding to the repository.

As before, if needed, Zac goes over this at around 7:37 here.

-Rich

Yes all of the files have been committed and I am seeing the changes reflected in the repository for everything bar the screenshot.

Not sure what's missing. I will keep chipping away at it and keep the post updated.

Thanks again.

Very odd. In that case, sorry I couldn't be more help and hope you get it sorted :)

-Rich

Yes strange! Your answers served as a sanity check, thanks!

What I did was paste in this from the WordPress example readme:

== Screenshots ==

  1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets directory take precedence. For example, /assets/screenshot-1.png would win over /tags/4.3/screenshot-1.png (or jpg, jpeg, gif).
  2. This is the second screen shot

Then commit & refresh. It pushed through my image, I tried to revert the changes but the above description remains. But it's getting there...

Thanks again Rich