WordPress.org

Support

Support » Plugins and Hacks » Child Theme Support

Child Theme Support

Viewing 1 replies (of 1 total)
  • replace the if property template statement with :

    if($property == 'template') {
                  if($this->childtheme()){
                    switch_theme( $this->template(), $this->childtheme() );
                  }else{
                    switch_theme( $this->template(), $this->template() );
                  }
              }

    add to the function list :

    function childtheme() {
        return $this->domain['childtheme'];
      }

    and then in your config add childtheme in the end

    array(
         'domain' => 'www.sitedomain.com',
         'siteurl' => 'http://www.siteurl.com',
         'home' => 'http://www.homeurl.com',
         'blogname' => 'blog name',
         'template' => 'maintheme',
         'childtheme' => 'my_child_theme'
    )
Viewing 1 replies (of 1 total)
  • The topic ‘Child Theme Support’ is closed to new replies.