• Resolved wildbug

    (@wildbug)


    My new site does not have a theme even though I enabled two themes in the theme settings. Am I missing something? How do I select a theme for the multisites that is different than the theme for my main site – can I specify this somewhere?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter wildbug

    (@wildbug)

    Oh I just figured it out. There are two separate theme settings in Admin dashboard. The one in the Super Admin controls the network only. Doh!

    Thread Starter wildbug

    (@wildbug)

    Still can’t figure out how to get the theme to show on my new sites though, if anyone has any ideas.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    To set up a theme that any site can use
    1) Go to Super Admin -> Themes
    2) Select enable for all themes you want enabled.
    3) Save ??

    To pick a theme for a specific site:
    1) Go to https://thatsite.domain.com/wp-admin (or https://domain.com/thatsite/wp-admin if using subfolders)
    2) Go to Appearance -> Themes
    3) Click on the theme you want to activate ??

    Thread Starter wildbug

    (@wildbug)

    Thanks, but I can’t access https://domain.com/thatsite/wp-admin – it says that page does not exist.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s your real URL?

    Thread Starter wildbug

    (@wildbug)

    main site: reshelter.org

    new network site: reshelter.org/samplejournal

    new network site admin log in: reshelter.org/samplejournal/wp-admin/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Looks like you didn’t update your .htaccess file.

    For Multisite it should be this:

    WPMU .htaccess
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    There’s more going on and it’s an issue we had sometimes with MU. the blog will serve up fine, but not the stylesheet or the admin area. Post will, which is weird.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That’s … really weird.

    Logically, if ALL that gets changed is the DB tables and .htaccess, then something in one of those is ‘wrong’ but I can’t guess what.

    I’m assuming no fix save start over? (How can posts show if you can’t get into the wp-admin area!?)

    I know, right?

    haven’t come across it yet while I was answering posts.

    Thread Starter wildbug

    (@wildbug)

    Thanks Ipstenu, your .htaccess changes fixed my problem. It’s strange though, because I did make the changes to .htaccess as per my Admin panel in the install. Your code is a bit different than the instructions I had. Very odd. Well, thanks for the advice, it worked!!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Oh the bit between the if module should be the same ?? I always wrap those things in a check to make sure mod rewrite is running, in case something goes blooey.

    Thanks andrea_r – changing out the code in my .htaccess to what you have fixed my troubles as well. Suggest this gets looked at for updates to wp3. This is the code given in network setup instructions (which didn’t work)

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    I’d argue it was server-specific in your case, as the given htaccess works for me on different servers. ??

    Just a quick note about selecting themes for specific sites. You can activate a theme site wide using /wp-admin/ms-themes.php (for instance if you want any user to have a choice of themes). Then as already pointed out, from the admin of each site /wp-admin/themes.php, choose a theme.

    You can also individually activate a theme for a site via Super Admin-> Sites (wp-admin/ms-sites.php), and edit the the site. In the right column a section Site Themes is available showing all of the themes in wp-content/themes. You can check which themes you want for that specific site (if for instance you have a custom theme for a specific site and don’t want any other site to have ability to use it).

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘how to select a theme for multisites different from main site’ is closed to new replies.