Home How to make sure my wordpress theme does not get broken when an update occurs on a parent theme
Reply: 0

How to make sure my wordpress theme does not get broken when an update occurs on a parent theme

user6978
1#
user6978 Published in September 19, 2018, 3:19 am

I have created a child theme which uses sydney(parent) and created a separate folder for it. In order for me to customize the parent I need to re-write the css rules within style.css inside child theme, but I was wondering what if later parent theme get an update and looses all the classes and id which I am refering from my child style.css

/*
    Theme Name: x
    Theme URL: www.x.com
    Description: X Theme
    Author: X
    Author URI: www.xyz.com
    Version: 1.0
    Template: sydney
*/

.wp-custom-header .wp-custom-header-video-button {
    bottom: 50%;
}

.wp-custom-header .wp-custom-header-video-button {
    background-color: #ffffff;
    opacity: 0.5;
}

.wp-custom-header .wp-custom-header-video-button:hover {
    background-color: #ffffff;
}

.fa-pause {
    color: #065fe4;
}

.fa-play{
    color: #065fe4;
}

#mainnav ul li a {
    font-size: 15px;
    font-weight: 900;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: left;
    margin: 0 20px 0px 0px;
}

All above css classes and I am referring to the parent theme, bc all the header.php, content.php, page.php and others file exists there, Does that mean I should have my own version of all these pages? if So what's the use of creating a child theme, when I can create my own Parent theme, kinda confusing! What is the best way so that no matter the parent theme gets updated I would not want the child theme to get affected at any time!

share|improve this question
  • it's a good idea to worry about not breaking the theme but it's not your work. it's the work of the developper of the theme. when the developper update his theme he must think about backward compatibility and when it's not possible, he must prevent users of theme long time in advance in order that end users have time to correct the child theme in order to not break the site display. – mmm Jan 13 at 7:15
  • @mmm I like ur answer, this makes more sense! thanks! maybe u can add as an answer so I can accept it! – Mizlul Jan 13 at 11:40

3 Answers 3

active oldest votes
up vote 0 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303814 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO