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

user1552
1#
user1552 Published in June 25, 2018, 7:52 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!

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO