Installing different theme and modules using Drupal domain module - drupal

I am trying to use drupal Domain module and I have domain_A and domain_B right now. Domain_A is my primary domain and B is the second one that I am trying to add.
Domain B will have its own theme and some additional functionalists. Everything else is pretty much same.Also the database is same..
My question is where should I put my theme and my new modules for domain B. Is it inside sites/domain_b/themes and sites/domain_b/modules? I have the theme currently inside the domain_b folder but every time i try to build the theme in domain A, its overwriting the theme for domain_B since it cannot see it.
So is the correct way is to keep the new theme and even the new modules for domain_B inside sites/all/themes and sites/all/modules folder and use domain_theme module to choose the new theme for domain_B?
Any suggestions?

When using the domain access module it is fine to add all themes to the sites/all/themes folder. What controls which theme is used is the domain_theme module, not which folder the theme is in (which would be the case in a multisite install).
When you are using the domain access module you really organize everything as if it was a single site, then left the different domain modules do the rest.

Related

Creating multiple sites on Wordpress using subdirectories

My client currently has a website on Wordpress which runs through a subdirectory (www.myclientsite.com/subdirectorysite1/). This website displays rental properties. They have asked me to create an additional website with an additional subdirectory (www.myclientsite.com/subdirectorysite2/) for a second prperty, and also create a new webpage for www.myclientsite.com which acts as a portal for the two property sites.
I have never done this before on Wordpress, and I've been exploring the possibility of using Wordpress Multisite. Does anybody have any experience with this? Or advice on what would be the best way to lay out these sites for both future page development, and daily management?
Yes, you can do this using creating a new folder 'subdirectorysite2' and then go for a fresh Wordpress installation.
If you have limited database creation access on the server, in that case, you can create a new template file on your existing WordPress theme and assign the new template to a page. After that change, the link of the page to subdirectorysite2. So that you can generate your desired URL i.e. www.myclientsite.com/subdirectorysite2/
And remember to modify .htaccess file as per your requirement.
You can use Wordpress multisite feature. https://codex.wordpress.org/Create_A_Network

Turning my current website configuration into a wordpress theme

My searches for this keep turning up "How to make a wp theme from scratch" which is not what I want. I made a website using the theme Scrawl, but I made a bunch of modifications. I would like to turn this into a theme so I can use it to make other sites without having to do much of the work again. Is it possible?
The theme is simply the skin of the website. The configuration of the site, in broad sense of the word, is stored in the database and config files. If you want to transfer that, you can export the configuration settings from one site and import it in the other.
If you've only made modifications within the theme folder, you can simply .zip that folder and import the theme somewhere else.

Transfer the code of a custom plugin into a theme

I am working on a new project on WordPress.
I am developing a new website for a client based on their actual site (developed by an other team).
So, I decided to create a new WordPress theme and to use the existing content (client's request).
However, this supposes to reuse the custom plugins, in order to not re upload the pictures and the articles by hand.
I would like to include the custom plugins into the new theme. However, the plugins folder is outside the theme folder. So I was wondering if you have an idea on how I could transfer the code of a custom plugin into the new theme.
Thank you in advance.
What custom plugins are being used to handle pictures and articles? Uploaded files should go to /wp-content/uploads and all data is stored in the database. Removing the plugins might make the data inaccessible, but it shouldn't disappear.
Why are you moving functions from plugins to a theme? Or are these plugins inside of the /wp-content/themes/ folder? The way you handle the two cases is very different.
If you need to copy certain functions into a theme, you can move them into a functions.php file (or a functions.php file that calls to other files in that directory) in a child theme. The WordPress Codex has much better documentation on child themes than I could ever outline here. Placing the functions into your main theme is a permanent change and is not recommended when you're dealing with functions that are better-suited to plugins.
If you're copying plugins from one theme into another, you might want to look at plugin dependencies using TGM Plugin Activation.

Drupal 8 install theme in multisite environment

I'm using Drupal in a multi-site environment. I want to create a theme only visible for this site. So I created the folder sites/site_url.be/themes/theme_name. But the theme doesn't appear on the admin/appearance.
I have already a custom theme installed in the sites/all/themes directory, which works fine, and compared all configuration files.
I added the css, js and templates, so it is not empty.
Rebuild the cache several times using drush and the interface
Changed the permissions of the directory
I placed the theme in the sites/all/themes
Checked the ip of the interface in the browser, so I certainly work local
You can find the answer in the following link: https://drupal.stackexchange.com/questions/198081/drupal-8-theme-structure-for-multi-site
If you want to check that you have configured and set-up everything correctly for your multi site: https://www.drupal.org/docs/7/multisite-drupal/multisite-mapping-with-drupal (Drupal 8 is at the end of the page)

drupal based menu

I built a website with a menu using drupal.
My question is how do I change slightly the design?
Do I have access to the css files? where?
Can I change the design using drupal?
If you used the default Drupal menu, you'd need access to the file system, specifically your site's theme files, to update the design. If you used a core theme, the theme would be in a subdirectory of your site's /theme directory. If you used a contributed theme, your theme should probably be located in a subdirectory of /sites/all/themes.
If you're unable to access the files but can somehow install modules, the following modules may help somewhat:
Sweaver
Live Themer

Resources