Continuing Discussion from Headless Theme 1.0.0 :
Most of this seems like plugin territory.
Iām fine with that. The theme doesnāt create any content, post types, etc. Everything is done on-the-fly, so, users can switch themes at any time without losing anything.
Update: I hadnāt planned on creating a page for the theme, but, it was needed for the āmore infoā link. Ah well. https://codepotent.com/the-perfect-theme-for-headless-classicpress/
Iād tend to agree with this but as we did in the WPTRT, there will always be that 1% of themes that are an exception to the rule.
Given the use case here, the Headless Theme falls in that 1%.
When/if we do eventually have a CPTRT I hope we will be willing to be more flexible than the WPTRT has been in the recent years
Well they would lose those things I listed. Thatās the whole point.
And if itās headless, why talk about styles at all?
And if itās headless, why have a theme at all? Just set WP_USE_THEMES
to false and youāre done.
No, they wouldnāt. Upon deactivation, the header cruft is restored, the rewrite structure remains untouched, 404s are still handled, and the various feeds come back to life. They lose nothing.
To style the index page, of course. Nobody wants a white screen. And, if they do, they can have one.
Because it looks better.
Moreover, you have made it clear that youāre not in support of this theme as-written. And thatās fine, too. Perhaps we can just agree that there are different strokes for different folks. This method really doesnāt tread into any areas that lead to the common problems of adding functionality to a theme.
Edited for tone.
I donāt know, but I think we should learn a proper way to dissatisfy things we are not interested in, a little encouragement would go a long wayā¦
Statement likeā¦ Good idea but why not do it this way and that way.
I believe we are all trying to shape CP into a good path.
So, @anon71687268 take it as a pinch of salt, and keep grinding.
@anon71687268 Iād be interested in seeing a live site built with this theme, and maybe a blog post on codepotent.com walking us through site design/development. You know, when you have nothing else to do.
Hey @raygulick - long time no type!
You can see a live implementation at updates.codepotent.com which is the domain that serves my plugin update data. A couple others have shared their own implementations via Slack DMs, as wellā¦ Iāll let them post their own links, just in case I was getting a sneak-preview not intended for public eyes.
I did create a short tutorial on this in response to a question that was wondering which plugins to use to create a headless installation that could serve specific data. As it turned out, I had just created exactly that just days prior. The Headless theme is essentially an installable version of that post. If you have any specific questions about the theme, design decisions, or implementation, feel free to open a post and Iāll be happy to help.
Thanks! Iāll check out these links.
Hereās a quick implementation I did (5mins in all) - library.classicelements.page
This will serve as the Templates library for Classic Elements (a fork of Elementor) server where the site does not require a frontend but I didnāt those that somehow ended up landing on the site being greeted with a blank page
With a little tweak via a child theme the theme will work perfectly well with Classic Elements for sites that only have landingpages.
Ah, thereās one! By the way, I like your particle.js
implementation better than mine! You can remove that underlying image if you wantā¦I wonāt be sad. itās actually just the theme screenshotā¦it can be overridden in your child theme with:
/* You can use "none", a hex value, or an image URL to customize it. */
html {
background:none;
}
I used some of what @anon71687268 had in his theme example, but set my page to do a redirect.
So visiting my update server just does an immediate redirect to my development site.
Thatās an implementation that I hadnāt consideredā¦ cool! Always love seeing and hearing how others are putting the work to use!
I know you wont be but I think it gives page a bit of character