WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to select a theme for multisites different from main site (19 posts)

  1. wildbug
    Member
    Posted 4 years ago #

    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?

  2. wildbug
    Member
    Posted 4 years ago #

    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!

  3. wildbug
    Member
    Posted 4 years ago #

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

  4. 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 http://thatsite.domain.com/wp-admin (or http://domain.com/thatsite/wp-admin if using subfolders)
    2) Go to Appearance -> Themes
    3) Click on the theme you want to activate :)

  5. wildbug
    Member
    Posted 4 years ago #

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

  6. What's your real URL?

  7. wildbug
    Member
    Posted 4 years ago #

    main site: reshelter.org

    new network site: reshelter.org/samplejournal

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

  8. 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
  9. 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.

  10. 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!?)

  11. I know, right?

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

  12. wildbug
    Member
    Posted 4 years ago #

    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!!

  13. 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.

  14. danatstadiumvolleyball
    Member
    Posted 4 years ago #

    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
  15. I'd argue it was server-specific in your case, as the given htaccess works for me on different servers. :)

  16. Michael Bishop

    Posted 4 years ago #

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

  17. danatstadiumvolleyball
    Member
    Posted 4 years ago #

    I spoke too soon thinking I was fixed - newly created subdir site, theme not loading. :( a dern firefox cache issue... won't refresh, other browsers are fine.

  18. Greg Rickaby
    Member
    Posted 4 years ago #

    This happened to me too. I had to clear Firefox's cache before the /subdomain/ sites showed up correctly :)

    BTW: The default .htaccess rewrite code provided by the network install works fine.

  19. paulhastings0
    Member
    Posted 4 years ago #

    I had the same problems described here (WP 3.0.1) I finally got the following code in my .htaccess file to work

    # BEGIN WordPress
    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]
    
    # END WordPress

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.