New Theme not available for Selection in "Settings | System | Public Theme"

sha - 1 month ago

I am using the following version of PyroCMS: PyroCMS 3.4 September 7, 2017 PyroCMS 3.4-beta1 August 19, 2017

I am following the video located here: https://pyrocms.com/videos/series/theme-development/theme-creation-and-basic-structure

The theme was created using: php artisan make:addon winterriver.theme.jetmx

The theme relevant files the theme are:
/addons/shared_addons/default/Winterriver/jetmx-theme/resources/views/layouts/default.twig
addons/shared_addons/default/Winterriver/jetmx-theme/src/JetmxTheme.php

I have tried using both "shared" and "shared_addons" in the path.

I had to to adjust the directory structure to reflect the structure in the video. But it does not matter since the Theme is not available in the dropdown for "Public Theme".

"shared_addon's generates a whoops...

Any ideas as to how to get the theme found so that I can begin theme development?

ryanthompson - 1 month ago

php artisan make:addon winterriver.theme.jetmx alone will create it where it's needed. Is your application reference "default"?

Do you see it in yoursite.com/admin/addons/themes?

sha - 1 month ago

Greetings again, Ryan. Long time...

My application reference in the .env file is "jetmx". When I rename "default" to "jetms" like so:

addons/shared_addons/jetmx/winterriver/jetmx-theme/resources/views/layouts/default.twig

...and refresh, the theme is still not available in the dropdown, only "Starter" theme.

Glad to have returned to PyroCMS.

sha - 1 month ago

Did not understand the second part of your question, but the following is the structure where I discover the "Starter" and "Accelerant" themes:

public/app/jetmx/assets/core/pyrocms/starter-theme public/app/jetmx/assets/core/pyrocms/accelerant-theme

They are located under "public/app/jetmx/" and not "addons".

ryanthompson - 1 month ago

Welcome back!

Just for giggles run php artisan make:addon winterriver.theme.jetmx2 and just place your theme next to the new one (and delete the 2 one if you like).

Sounds like it's not in the right directory and possibly a naming issue. Hard saying. But this will give you a fool proof location as it builds it in your application's addon directory automatically.

Hope this helps!

sha - 1 month ago

That is the solution.

Okay, so Rule #1: Theme name must be different than application reference.

Got it.

Thank you very much!