WordPress rule no.1: Child Theme

  • Anonymous

    #1197

    Child theme allows you to modify the theme without actually modifying the theme’s core codes, so it makes sure that you can safely update the theme whenever there’s a new update without losing your modifications.

    I strongly recommend that you use child theme to modify the theme instead of modifying the theme’s files directly.

    It’s quite easy to do. Here’s how:

    1. Create a graphene-child folder in wp-content/themes/
    2. Create a new style.css file inside the graphene-child folder
    3. Copy and paste the following code into the new style.css
      /*
      Theme Name: Graphene Child
      Theme URI: http://www.yoursite.com/
      Description: Child theme for the Graphene theme
      Author: Your name here
      Author URI: http://www.yoursite.com/author/
      Template: graphene
      Version: 0.1.3.x
      */
      @import url("/wp-content/themes/graphene/style.css");
      /* Your modification goes under this line */

    4. You will only need to modify the values of the properties for the elements that you want to modify. There’s no need to copy and paste the entire style.css.
    5. Go to your WordPress Appearance > Themes admin page and activate the child theme.

    You can learn more about using child theme at the WordPress codex page.

    Tools for Your New Child Theme:

    Use You favorite CSS editor making Your new Child Theme files eg.: style.css & functions.php or get this free CSS editor: Komodo Edit.

    Use Your favorite FTP software making wp-content/themes/graphene-child catalog on Web server & upload of Your new Child Theme files eg.: style.css & functions.php or get this free FTP software: FileZilla.

    Kim

Viewing 1 post (of 1 total)

  • You must be logged in to reply to this topic.