• 0

Multisite question

Question

Posted · Report post

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

Share this post


Link to post
Share on other sites

14 answers to this question

  • 0

Posted · Report post

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.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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 - http://demo.pagelines.me/theming/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Great, happy this is resolved.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Rob,

 

I created a new site in my multisite setup

wordboxer.ruzzleonline.nl

For the main site

ruzzleonline.nl

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

@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: http://codex.wordpress.org/Debugging_a_WordPress_Network
  • 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.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

We have confidence you'll do well.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now