WordPress.org

Ready to get started?Download WordPress

Forums

MultiDomain
Child Theme Support (2 posts)

  1. Markus Stefanko
    Member
    Posted 1 year ago #

    Doesn't seem to be working with a simple child theme. ( just a folder with style.css and reference to the main theme )

    http://wordpress.org/extend/plugins/multidomain/

  2. Markus Stefanko
    Member
    Posted 1 year ago #

    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'
    )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.