How to fork site properly

Permalink Browser Info Environment
I want to create some custom page types, modify the CSS, etc. Following steps on this page to fork it: http://www.concrete5.org/documentation/how-tos/designers/modify-a-p...

I moved the theme folder into siteroot/themes, renamed and uploaded.

My questions are, I don't understand packages in C5 and if I am supposed to do anything with folders inside theme_luminosity/blocks/. Are those custom blocks for this theme that will now not work with the theme?

Do you recommend people doing what I did if they want to modify site files as such, so that they are not overwritten when the theme is updated, or is there another way to add and modify theme files that works better?

Thanks,

ADDITION: If I just wanted to change one file, for example the main.css file for this theme, could I just copy that file into siteroot/themes/luminosity/main.css and otherwise just leave the theme alone in its original location? Would this have the effect of loading the theme from its original location except over-riding the css file with the one I created and modified? And I could update the theme and my css would still override?

And if I wanted to create a new page type, could I just add it to that location in siteroot/themes/luminosity and it would be found and used?

Thanks

Type: Discussion
Status: In Progress
uswebdesigner
View Replies:
c5mix replied on at Permalink Reply
c5mix
Yeah I really wish there was a better way to customize themes in concrete5 (like WordPress has child themes). But for now that how-to you link to is probably the best way. However, when there are updates to the theme you'll have to copy them over into the new theme you created. I would say if it's just CSS changes, the best thing to do would be to add your modified CSS to the Custom CSS box in the theme's customization panel (Dashboard->Pages & Themes and click Customize next to the theme). This CSS will stay in place even after updating to a new version. As far as editing specific files there's really no elegant way to do it to keep your changes after updating.

For your question about blocks, you can copy those out to the blocks directory in the root of your install to modify them.
uswebdesigner replied on at Permalink Reply
uswebdesigner
ok. Just to clarify - my Additional question about just adding the changed files and added files into a theme folder by the same name under siteroot/themes - that does not work?

And the extra "blocks" folders inside the theme package, I don't need to worry about those not also being moved over to their new location?

Thanks,
c5mix replied on at Permalink Reply
c5mix
I'm honestly not sure if you just copy packages/theme_luminosity/themes/luminosity to themes/luminosity if that will override it and work. I've never personally tried that.

And for the blocks, as long as the theme_luminosity package is installed you should still have access to those blocks without having to copy them to the root blocks folder. You should only have to do that if you wanted to modify them in any way.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.
Dushka replied on at Permalink Reply
Dushka
A couple of years have passed since this question was addressed. I would like to know if this is still considered a wise thing to do now we are into the new age of Concrete5.7.
If it is still considered wise, I need help on exactly how to modify the themes/Mycustomtheme/page_theme.php. When I follow the instructions in the link given above and then go to Dashboard/Themes, under my new custom theme listed in "Themes available to install" it has a message, "The theme file page_theme.php does not defines the class Application\Theme\Mycustomtheme\PageTheme". If anybody could tell me exactly what changes to make in page_theme.php I would be grateful.
Dushka replied on at Permalink Reply
Dushka
I just discovered a more up-to-date discussion which answers my questions. It is athttps://www.concrete5.org/community/forums/5-7-discussion/css-theme-...

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.