Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1214266
    andre1980
    Participant

    Hello,

    I just read about a child theme. I have a question about this:

    1. My website is already almost finished. If I make a childtheme now, do I have to build it all over again?
    2. I only made changes in the css custom box, do I need to make a child theme? This is the code I have in there:

    .single-post .x-main.left {
    margin-left: auto;
    margin-right: auto;
    float: none;
    }

    .single-post .x-sidebar {
    display: none;
    }
    .page-id-90 .entry-title {
    text-align: center;
    }
    .page-id-92 .entry-title {
    text-align: center;
    }
    .page-id-94 .entry-title {
    text-align: center;
    }
    .single-post h1,.single-post .h1{font-size:2.5em;}
    .single-post h2,.single-post .h2{font-size:2.0em;}
    .single-post h3,.single-post .h3{font-size:1.5em;}
    .single-post h4,.single-post .h4{font-size:1.15em;}
    .single-post h5,.single-post .h5{font-size:1.10em;}
    .single-post h6,.single-post .h6{font-size:1.05em;}

    input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #707070;
    }
    input::-moz-placeholder { /* Firefox 19+ */
    color: #707070;
    }
    input:-ms-input-placeholder { /* IE 10+ */
    color: #707070;
    }
    input:-moz-placeholder { /* Firefox 18- */
    color: #707070;
    }
    .page-id-232 .x-main,
    .page-id-242 .x-main,
    .page-id-228 .x-main,
    .page-id-236 .x-main {
    margin-left: auto;
    margin-right: auto;
    float: none;
    width: 60.536945%;
    }

    3. If I install the new update. Will I lose everthing?

    Cheers,
    André

    #1214434
    Lely
    Moderator

    Hi André,

    1.) No need to build your site all over again. Child theme will inherit functions and design of your main X theme.
    2.) It is recommended to install child theme for further customization. Although CSS is fine on your customizer. But others preferred it on style.css file of the child theme. There are instances that certain custom CSS should be on a child theme styles.css file.
    3.) It is always recommended to save a backup before doing any update. The CSS on customizer will remain because it is save in the database. If you have edited files on the main X theme, you will lose it. That’s why child theme is recommended and customization should be added there.

    Hope this helps.

    #1215882
    andre1980
    Participant

    Thanks Lely. That´s what I wanted to know!

    #1215893
    Rue Nel
    Moderator

    You’re welcome! We’re happy to help you out.
    If you need anything else we can help you with, don’t hesitate to open another thread.

  • <script> jQuery(function($){ $("#no-reply-1214266 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>