Modifying or creating a theme
from Bunny of Doom
Modifying or creating a themeHow many of you have tried creating a theme or modifying an existing theme?
Or have you enabled the hidden "advanced theming" settings and
made a complete mess changed colors and stuff? (You don't even need to be a site admin for this.)
Mike posted this specifically with regard to Hubzilla, but I
think it's the same for (streams)...
Since a couple of people are doing theme related stuff, I thought the following info might be useful.
If you want to modify redbasic, you can
cp -R view/redbasic view/foo
And then install and select the 'foo' theme (or whatever name you would prefer). Then you can change it as much as you want and never worry about merge conflicts.
Then if you want to actually release your custom theme, you can 'git add view/foo' and create a pull request against the project dev branch -- or copy the foo (or whatever) folder to a new repository and commit it as a third-party theme repository.
Just some advice if you go the third-party repository route: Add something to the project documentation that will let people know that your (theme, addon, or widget) repository exists; because I can assure you that a year after the initial release announcement nobody will ever find it again.
Alternatively, if you just want to change a couple of things, you could create a new schema instead. This is basically two files - a php file that sets the major theme variables and a css file that over-rides the redbasic style.css in the ways you want. You can see examples in the view/theme/redbasic/schema directory. This can also be published by adding it to git and issuing a pull request.
@
Bill Statler