• GreenRain37

    (@greenrain37)


    Is it possible to install and activate child theme plugin without problem when we already have custom PHP in Appearance -> Editor and CSS in Appearance -> Customize?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter GreenRain37

    (@greenrain37)

    Update: What I mean is what will happen when activating child theme if we have a lot of code in Editor and Custom CSS?

    Do I need to copy everything or it does automatically?

    Thanks 🙂

    SMHobson

    (@smhobson)

    The child theme basically just supersedes the parent theme with whatever you put in the functions.php or style.css. You should be able to install the child theme no problem and your custom coding will remain intact. I would recommend you transfer all your custom coding into the child theme, as updating customizr will delete all your current custom coding. Updating the parent theme does not affect your child theme. Best of luck!

    Thread Starter GreenRain37

    (@greenrain37)

    i installed and activated

    everything OK except menu is gone :/

    why is menu gone?

    WPyogi

    (@wpyogi)

    Go to Appearance > Menu and reselect the menu(s). Theme settings and options don’t all carry over to a child theme.

    Thread Starter GreenRain37

    (@greenrain37)

    Thanks.

    One more question:

    Is it necessary now to copy themefunctions.php and CSS stylesheet to the blank boxes so when theme updates, this code remains?

    Here is what I see:

    <?php
    /* Write your awesome functions below */
    WPyogi

    (@wpyogi)

    No – if you copy the parent theme functions in there, it will crash the site.

    And the CSS file in the child theme should contain only your changes to the CSS, not a copy of the parent theme’s.

    Thread Starter GreenRain37

    (@greenrain37)

    we have a lot of custom php and css

    we haven’t updated since October 2014

    if we update parent theme all the code goes away, no?

    i don’t know :s

    Edit: basically i’m asking do we copy the custom code into these boxes?

    Thread Starter GreenRain37

    (@greenrain37)

    I would recommend you transfer all your custom coding into the child theme, as updating customizr will delete all your current custom coding

    This is what i’m asking.

    Copy the custom code only into the functions.php and stylesheet of child theme? Where does the custom code go to keep it safe to update the theme?

    stellamaris5

    (@stellamaris5)

    Child them creates Functions.php and Style.css separately under the child theme. Cut and paste all the cuctom code from those parent theme files to child theme files.

    It should all work the same then. When the child theme is active your are working in it only , you dont touch the main theme core.

    stellamaris5

    (@stellamaris5)

    I should add, the CSS code can also be pasted into the CSS box in the customiser , yes, it’s the same as in the parent theme except you are working in the child theme. have you activated the child theme?

    I would however recommend to paste it in the child Style.css file

    this is accessible from Appearance–>Editor. ON top you will see Customizr Child: Stylesheet (style.css)

    If not see Select theme to edit: and select Customizr CHild but this is default if the Child theme is active.

    stellamaris5

    (@stellamaris5)

    Additionally, if you havent updated for a while some of the customizations may not work as some of the coding has changed but there is documentation and lots of answers are provided in the forum

    Thread Starter GreenRain37

    (@greenrain37)

    thank you i will do this and hopefully will work 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Child theme’ is closed to new replies.