Twenty Ten WordPress Theme

Twenty Ten WordPress Theme

WordPress child theme is a theme that inherits all features from other theme (parent theme), which is modified and added with new features. Creating a child theme can be a complicated process, but if you just want to change the style from parent theme without adding any feature, then it can be done with only 3 easy steps. The default theme from WordPress 3.x used as an example.

  • Step 1: Create a Folder for a Child Theme
  • Create a new folder inside wp-content/themes/ for the child theme. One thing to note,  although basically the child theme inherits all features from a parent theme, but the folder you need to create has to be inside wp-content/themes/, not inside the parent theme.

  • Step 2: Create a Stylesheet
  • This is the stylesheet which make the child theme presentation differs from the parent theme. Create a new stylesheet and add the information below right at the top of the stylesheet:

    /*
    Theme Name: Twenty Ten Child Theme
    Theme URI: http: //itx.web.id/
    Description: Child theme for Twenty Ten
    Author: Eko Author URI: http: //itx.web.id/author/eko
    Template: twentyten
    Version: 0.1.0
    */

    To use the style from the parent theme as a base for your own style, you just need to import the style from the parent theme:

    /*
    Theme Name: Twenty Ten Child Theme
    Theme URI: http: //itx.web.id/
    Description: Child theme for
    Twenty Ten Author: Eko Author URI: http: //itx.web.id/author/eko
    Template: twentyten
    Version: 0.1.0
    */

    @import url(“../twentyten/style.css”);

    # Add your custom styles here #
    #

    Save the stylesheet file as style.css and put it inside the folder you’ve created for the child theme. When you have a child theme, then the parent theme is not loaded in the WordPress administration panel.

  • Step 3: Activate The Child Theme
  • The last step is testing. Activate the child theme just like any other themes from Appearance -> Themes menu.

That’s all you need to create a child theme. This is a quick guide to create a child theme. To create a unique child theme, you might need to add new features not available on the parent theme. It’s beyond what we discuss here.
Hal yang juga menarik:

Hak Cipta

Semua skrip dan teknik dalam artikel di itx.web.id boleh digunakan sebagaimana kehendakmu tanpa perlu mencantumkan sumber. Kamu tidak boleh mengkopi seluruh artikel, dalam Bahasa Indonesia ataupun diterjemahkan ke dalam bahasa lain.


Related Articles:

Artikel terkait:

About the author

Tinggalkan Balasan

Alamat surel Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

x( X-( B-) ;-) :wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :D :?: :-| :-x :-o :-P :-D :-? :-)) :-) :-( :-& :) :( :!: 8-O 8-) 8) (Русский) (yahoo) (worship) (woot) (wave) (unsure) (tongue) (thinking) (tears) (taser) (smileydance) (sleeping) (sick) (scenic) (rofl) (rock) (party) (panic) (okok) (nottalking) (ninja) (music) (muscle) (muhaha) (money) (mmm) (lonely) (lol) (lmao) (idiot) (hungry) (highfive) (heart_beat) (heart) (headspin) (hassle) (haha) (gym) (griltongue) (goodluck) (girlkiss) (funkydance) (fish_hit) (eyeroll) (evilsmirk) (evil_grin) (drinking) (doh) (devil) (dance) (cry) (cozy) (coffee) (brokenheart) (bringit) (blush) (bigeyes) (beer) (banana_rock) (banana_ninja) (banana_cool) (applause) (annoyed) (angry) (K) (: