• Hello!

    I’ve created a child theme and i want to change some php lines. Do i have to copy all the php files in the Child Theme? How can i make the changes?

    e.x. I have a php file called “slider.php” and has this line <?php echo get_the_author() ?> and i want to delete or edit it. What i have to do? Step-by-Step!

    Please answer me! Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • You only need to copy the php file(s) that you want to change. But do NOT copy the functions.php file – that’s done differently. What theme are you using?

    Thread Starter e-win.gr

    (@haritos)

    The “Cherry – Responsive News and Magazine Theme“! I once tried to copy the all the php files but i came across with an error. So you say i have to copy all the files except from the functions.php and the style.css as child theme has it’s own! But what i have to do if the theme has an update and i want to keep my changes but also want the update changes?

    P.S. As i see WPyogi you are the best member of the forum! You help everyone!

    No, you only need to copy the files if and when you want to change them. The updates will work that way. If you have concerns or questions about your theme, you should ask the developer as we don’t support commercial themes here – partly because we don’t have access to them for testing or use. But TF provides support for their themes, so you can ask there if you have questions.

    [And thank you but quantity isn’t necessarily quality :)! I just happen to have more free time than some of the other volunteers – most of whom know more than I do!]

    Thread Starter e-win.gr

    (@haritos)

    Ok! But if i made changes in slider.php in the child theme and after that changes an update comes. And i want to make it, what i have to do?

    If you only make changes in the child theme, you should be fine when updating your theme. Always backup your site and database before updating, just in case…

    Thread Starter e-win.gr

    (@haritos)

    Ok! Thank you for all!

    P.S. I’ve checked your site and downloaded the WordPress course! It seems that you made a very good job!

    That’s actually not me – there are two of us with similar user names (that happened by pure coincidence) – but you are right that Christine has a great site and lots of excellent info!

    Thread Starter e-win.gr

    (@haritos)

    Oh sorry! Can you help me with this?

    No, these forums don’t work that way – you need to be patient :). Everyone here is a volunteer so help is not always as fast as you’d like. (And BTW, I don’t know the answer to that question…)

    Thread Starter e-win.gr

    (@haritos)

    OK! Anyway thank you WPyogi!

    Thread Starter e-win.gr

    (@haritos)

    WPyogi, in the parent theme i have a php file named “slider.php” (cherry/templates/slider.php) and i want to edit it changing some code lines. As you said i have to copy it and paste it in the child’s theme and make the changes there, am i right?

    I’ve done what you said, i edit the php file but nothing changed.

    What i have to do?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Child theme and php files?’ is closed to new replies.