I haven’t found a similar topic, so I created a new one.
I’d like to use child’s theme, which would be a duplicate of the main one. Why?
I would like to remove CSS and JS that is not needed, and substitute it with my own, CSS at least.
If have quite a lot Custom CSS, so creating my own CSS sheet would save a lot of kB’s. The problem is that Child’s theme loads my CSS, but it still loads the unused CSS from the main theme.
How can I fix that? I was thinking about simply duplicating the whole GeneratePress theme, but I am concerned about the Premium malfunction?
If you’re going to be using GP and GPP together, it may not be a good idea to completely de-construct GP itself. It will likely cause issues.
In GP 2.5.0, we’ve moved to using Sass to build our CSS, which may make it easier to remove certain aspects of CSS in custom builds. Even then, it’s likely not a good idea to do it unless you’re building a completely custom theme based on GeneratePress.
I was going to create my own theme in the long run, I am using GP as a template because I really like how fast it is and its design.
I just don’t need the numerous options/UI, and unneeded CSS and JS that come with it.
Is it good idea to copy the entire GP and then start hacking away code that I don’t need, but still keep the original for the updates and as a backup?