WordPress.org

Ready to get started?Download WordPress

Forums

Creating child theme after already editing parent (8 posts)

  1. urbanrich
    Member
    Posted 9 months ago #

    I am new to WP and learning as I go along.

    I'm using a theme from inkthemes.com which I have made some tweaks to e.g changing colors of text and menus. I have only just read about child themes and think it best that I create one.

    I'm pretty sure that I understand how to create a child theme, but how can I do this and still keep the changes I have already made to the parent theme?

    Am I able to just copy and save all of the modified theme files, re-install the theme, create a child theme, use a text editor to find the differences between the re-installed files and the previously modified files and then add them to the child theme?

    Please excuse me if any of what I've asked either makes no sense or is technically impossible. I'm still learning the ropes and trying to get to grips with it.

    Any help in this matter would be greatly appreciated.

    Reply

  2. wpfan1000
    Member
    Posted 9 months ago #

    "Am I able to just copy and save all of the modified theme files, re-install the theme, create a child theme, use a text editor to find the differences between the re-installed files and the previously modified files and then add them to the child theme?"

    If you have only changed some css in some files, and you havent changed any other files such as template files, then I think you are gonna do it in the right way.

  3. urbanrich
    Member
    Posted 9 months ago #

    "If you have only changed some css in some files, and you havent changed any other files such as template files, then I think you are gonna do it in the right way."

    No, I'm pretty sure I only made changes to style.css.

    I was praying that I didn't have to start off again from scratch.

    Thank you for your help.

  4. wpfan1000
    Member
    Posted 9 months ago #

    Then your plan is exactly the right way to do it and you are doing great for someone who is just learning the ropes.

    Are you familiar with the Firebug addon in Firefox? A css coder's best friend.

  5. urbanrich
    Member
    Posted 9 months ago #

    I am kind of aware of Firebug, I happened to briefly read something a about it couple of days ago about it. My understanding is that it's, and please excuse my simple explanation, an addon that lets you hover over elements of a webpage to find the code for it. Useful I suppose if you need to find a certain colors hex code.

    Is there any similar addon for Chrome?

  6. wpfan1000
    Member
    Posted 9 months ago #

    Well it shows you what css, class, and id's are being use on any element in a web page, and so you can use that to easily create css to change that element to your liking.

  7. Andrew
    Forum Moderator
    Posted 9 months ago #

    Is there any similar addon for Chrome?

    No addon, Chrome has its lesser equivalent built-in. Right click and select 'Inspect element' to view it.
    https://developers.google.com/chrome-developer-tools/

  8. urbanrich
    Member
    Posted 9 months ago #

    I think it seems worth me installing Firefox just to use Firebug if nothing else, it seems as though it could be very useful.

    Thanks for your time and help, I really appreciate all the input.

Reply

You must log in to post.

About this Topic