• Hello,

    I have a question about using Child themes. This is fairly new to me, seen as though I always edited the Parent theme.

    I found out using the Child theme you can fairly easy edit the Parent themes css. But how does it work for the coding? I read that you copy the file and paste it in the Child theme directory, but isn’t the point of using Child themes that when an update is done your edits aren’t gone when you update, but if you were to update you won’t have the latest version because your Child theme uses an older copy? Or am I looking at this the wrong way?

    Example: I want to remove certain code from my Parent theme. I copy the file into the Child theme directory and edit the code here. But if I update the Parent theme and extra functionality is added, how will I ever be able to use it (besides doing the same action as before).
    (Currently using Blackbird theme)

    Thanks for clarifying this for me! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • But how does it work for the coding?

    You create customised template files in your child theme. These are loaded in preference to the files in the parent theme. You child theme will still inherit an new functionality added to the parent theme if you haven’t customised that particular file.

    Thread Starter BOOB inc

    (@boob-inc)

    So lets say I copy and edit “Index.php”. If I delete a certain piece of code out of it and download an update for my Parent theme, new functionalities will be automatically used because it’s not available in my “Index.php” on my Child theme?

    It very much depends upon what functionality was added to the parent theme, how it was added and what customisations you have made in the child theme.

    Thread Starter BOOB inc

    (@boob-inc)

    Oh ok 🙂 well thank you for enlightning me.

    Can I ask you another question, not concerning theming or templates but account access? Because I think you blocked two of my previous accounts from posting new topics because I wouldn’t use child themes in the past.

    TOMM3KE and TOMTH

    No – we do not block accounts for that reason. Both of those accounts are still active.

    Thread Starter BOOB inc

    (@boob-inc)

    But when I post a topic using these accounts it isn’t visible? :s

    Thank you for helping me today btw.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    But when I post a topic using these accounts it isn’t visible? :s

    That’s not blocked, that means you’ve been caught by the spam filter. I’m pretty sure blocked accounts get a “Your account is blocked” or something along those lines. 😉

    The spam queue gets reviewed regularly and normal comments get released.

    Try not to use multiple accounts, please pick one and stick with it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Child theme – editing code from parent theme’ is closed to new replies.