Jump to content


Photo
- - - - -

Multisite question


Best Answer Rob , 12 June 2013 - 11:36 AM

Willem,

 

If you've read about Base Theme, which is a very plain child theme, this will not add any styling or changes (as third-party child themes do).  So, if you add the Base Theme to each multisite, your centralized styling and settings will be seen.  However, the Base Theme lets you modify a functions.php and style.less or style.css on an individual basis. Base Theme is essentially invisible but it still gives you the option to modify things when you want, in each of the sites.
 

Use that one and you'll have everything you wish for.

Go to the full post


  • Please log in to reply
14 replies to this topic

#1 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 26 March 2013 - 08:03 PM

Hi,

 

Question: when I do a multisite setup. Can I still use different CSS/LESS styling for the different sites with the custom CSS plugin or child theme? And do they also have seperate functions.php?

 

Kind regards,

 

Willem



#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 26 March 2013 - 10:40 PM

Yes in the customize plugin, create a 'blogs' folder.... then use the blog numeric ID so for eample, blogid 15 could have:

 

pagelines-customize/blogs/15/style.css

pagelines-customize/blogs/15/functions.php



#3 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 27 March 2013 - 08:34 AM

OK, that's great. But for single install I did I just make the move to a child theme (normally this is the best way to go - you get better of it you tell us  :D ).

So is this also possible with child theme?

 

Kind regards,

 

Willem



#4 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 28 March 2013 - 01:21 AM

Hi Willem

 

You can install a different child theme into each site in the multisite setup and place your css into the style.css of the child theme. If you want to add LESS and to a child theme you'll need to create style.less and place both your css and less in there.

 

Take a look at the following link which will show where LESS can be used when creating themes -

Please Login or Register to see this Hidden Content



#5 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 11 June 2013 - 10:26 AM

Hi James,

 

I did more research on multi-site and want to start using it. 

 

However, I have one more question about your last reply.

 

 

 

You can install a different child theme into each site in the multisite setup and place your css into the style.css of the child theme.

 

The goal for me using a multisite is to have one child theme network activated for all sites is the network, because the structure of every website is the same. So I make general layout changes it changes for all websites.

 

However, each website (including the 'main' site from the network) needs different functions.php and different CSS (to use different colors). Is this possible?

 

Kind regards,

 

Willem



#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 11 June 2013 - 03:20 PM

Willem,

 

There's a big difference between "you can" and 'you must'.  James is saying you have the ability to implement custom child themes for each site. That means you have the ability to do it, not that you must do it.  If you don't, then the centralized or default theme should apply across all multisites.  You should read up further as these rules apply to any theme, not just to PageLines.

 

Since MultiSite is well documented, I'll recommend reading further.



#7 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 12 June 2013 - 09:17 AM

Hi Rob, I know he didn't tell me I 'must'. However, he was talking about using a different child theme for each site, and I asked a question about my intention to only use one child theme as a basis for all websites. 

However, I do want to use different functions.php and different .less (for small changes) for each site.

 

I read documentation from WordPress 'Before you create a network', 'Create a network', 'Multisite Network Administration'. I tried to find information on Pagelines how to do it, can't find it. And I googled for information how to set this up. At this moment, I don't come any further with it. I will trie looking for the right information, but at this moment I'm not so sure that it is that wel documented by WP or Pagelines. Probably I'm wrong with this, can you maybe provide me with a link if you know where it is documented how I can achieve this?

 

Kind regards,

 

Willem



#8 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 12 June 2013 - 11:36 AM   Best Answer

Willem,

 

If you've read about Base Theme, which is a very plain child theme, this will not add any styling or changes (as third-party child themes do).  So, if you add the Base Theme to each multisite, your centralized styling and settings will be seen.  However, the Base Theme lets you modify a functions.php and style.less or style.css on an individual basis. Base Theme is essentially invisible but it still gives you the option to modify things when you want, in each of the sites.
 

Use that one and you'll have everything you wish for.


  • Willem-Siebe Spoelstra likes this

#9 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 15 June 2013 - 09:00 AM

Rob, you made my day!



#10 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 15 June 2013 - 12:35 PM

Great, happy this is resolved.



#11 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 23 July 2013 - 09:06 AM

Hi Rob,

 

I created a new site in my multisite setup

Please Login or Register to see this Hidden Content

For the main site

Please Login or Register to see this Hidden Content

I used the Base Theme (starter childtheme) and besides the normal Pagelines settings I did in the WP menu Pagelines tab I used this childtheme to make some functions.php and CSS/LESS.

 

I was hoping my new site in the network would take over all the settings I did already for the main site in the WP menu Pagelines tab, because I network enabled the Pagelines Framework. However, when I logged in in my account at my new network site, all the settings are as if it is a clean install. Is it possible what I want to achieve? All my new network sites actually need the same settings, so I would love if it is possible to take this over from the main site, is this possible?

 

What I do see, because on the new network site I also enabled the Base Theme, is that the CSS/LESS and functions.php is working. But how can I overwrite this CSS/LESS and functions.php for some site specific adjustments?

 

Hope to hear from you.

 

Kind regards,

 

Willem



#12 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 03 August 2013 - 11:47 AM

Willem,

 

I am not a network specialist, and have no experience with Multisite.  You'd really need a developer or someone with Multisite expertise to help with these questions.  I don't know of any moderators here that do.  Only a couple of our developers have that skill and presently, they're working 20 hours a day on restoring the site and services to normal.  I can't ask them questions.

 

You might find some answers with WordPress, as they're more likely to have people familiar with Multisite.



#13 jbrouwer

jbrouwer

    Super Member

  • Members
  • 191 posts
  • Country: Country Flag

Posted 09 August 2013 - 07:15 AM

@willem just testing with my first multisites and it is certainly possible what you're trying to achieve, although I have not tried it with Pagelines yet. However, I did run into the same problems and after some trial and error managed to get it working. 

 

Things you can try (if you have not done this already):

  • Read this: 

    Please Login or Register to see this Hidden Content

  • Save your permalinks
  • Save your network settings
  • Update wordpress (will also update database stuff)
  • Look at your subdomain's source, check the link of the css file, check if you can open it etc. It might help you to find the problem. 
  • Use Google even more :-) you're not the first....

 

Cheers.



#14 Willem-Siebe Spoelstra

Willem-Siebe Spoelstra

    Super Member

  • Members
  • 228 posts
  • LocationAlmere
  • Country: Country Flag

Posted 09 August 2013 - 07:17 AM

Thanks for the help both of you, I will let you know my progress, I'm sure I will manage it too!



#15 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 14 August 2013 - 04:02 PM

We have confidence you'll do well.