Create a theme.php File

Next, theme.php file needs to be created to indicate to WHASOLS that this is a Child Theme. And it must be defining the Parent Theme to be used.

The sample below defines a name, author, and parent theme (whasols).

# My Theme Configuration File
<?php 
$configs = [
    "name"=>"Hostiko",
    "description"=>"Designingmedia",
    "author"=>"Hostiko",
    "config"=>[
        "parent"=>[
            "name"=>"Theme",
            "type"=>"system",
            "default"=>"hostim",
        ],
        "logo"=>[
            "name"=>"Logo",
            "type"=>"system",
            "default"=>"logo.jpg",
        ],
        "header"=>[
            "name"=>"Template",
            "type"=>"dropdown",
            "default"=>"01",
            "options"=>["01"=>"wp-01","02"=>"wp-02","03"=>"wp-03","04"=>"wp-04","05"=>"wp-05"],
        ],
        "touch"=>[
            "name"=>"Touch WIth Us",
            "type"=>"textarea",
            "default"=>"",
            "description"=>"Touch With Us Text (HTML Supported)"
        ],
        "key"=>[
            "name"=>"License Key",
            "type"=>"text",
            "default"=>"",
            "description"=>"License Key"
        ],
        "Demo"=>[
            "name"=>"Demo",
            "type"=>"yesno",
            "default"=>"yes",
            "description"=>""
        ],
    ]
];

The following information is required:

  1. name — The name you will see in the WHASOLS Admin Area.
  2. config / parent — The name of the Parent Theme directory. In the above exampe the Parent Theme is the "Hostim" theme, so the name of the parent theme directory is hostim. The theme.php file can also define other parameters about your theme. To learn more, see Theme Parameters. You can create child themes with parents that are, in turn, children of other themes, as long as the ultimate parent theme includes all of the required WHASOLS template files and assets. However, this is not recommended for most uses.