Site logo

Archived topic

Creating a Child Theme

3 replies · Started by Vish on February 12, 2019

Viewing posts 1–4 of 4

Hello

I have the below setup right now:

Additional CSS: 800+ lines.
Code Snippets: 10
Elements (Hooks): 6

As the additional CSS is quite large in size, would it be better if I create a child theme for my site?

If yes, I have the below questions:

1. Can I simply copy whatever is in additional CSS to style.css?
2. Can I simply copy all the PHP code from code snippets to function.php?
3. Can we simply leave the Elements alone or is there a possible way to move them to child theme as well?

Thanks :)

Hi there,

Yes i personally would move the CSS to a Child Theme.

1. Yes simple cut and past into your child theme style.css
2. Yes, same applies here.
3. Elements should be left where they are, they cannot be transferred to a child theme and their would be no benefit if you could. They are a custom post type so think of them as a post or a page ( just smarter :) )

Thanks for the quick reply, David :)

You're welcome

This archived topic is closed to new replies.