WordPress.org

Ready to get started?Download WordPress

Forums

Unable to find landguage specific roots at the server (8 posts)

  1. Bettinaba
    Member
    Posted 7 months ago #

    I have a multi site up and running - four languages.
    I cannot find the directory for the language specific stuff.

    For example one image has the following adress:
    http://domainname/Home/english/wp-content/uploads/sites/2/2013/09/Kontor.jpg and that image is visible - not broken

    At the /Home directory on the server I cannot find any directory named "english" or any other landguage root. I only fund wp-admin, wp-content etc and a few files.

    Any idea?

  2. It's in domain.com/home/wp-content/uploads etc...

    English (and all your site folders) is a virtual folder. :)

  3. Bettinaba
    Member
    Posted 7 months ago #

    Forgot - my sites are installed like this:

    http://domainname/Home - the swedish site
    http://domainname/Home/english
    http://domainname/Home/german
    http://domainname/Home/french

    None of these directories are visible at the web hotel. The directory mask is 755.

    I actually made a recursively change of protection to RWE for myself in the whole tree (perhaps that was stupid). The list of changed files contain none of the language specific roots. Where are they hidden?

  4. Bettinaba
    Member
    Posted 7 months ago #

    Thanks Ipstenu :)
    Where do I find the local stylesheets then?
    (my real issue)

  5. Bettinaba
    Member
    Posted 7 months ago #

    I think I have local style sheets (without my interference) since I cannot make my theme's stylesheet load the same background image on all sites. The code gets overridden somewhere....a local stylesheet I presume.

    Due to firebug it is supposed to be found at http://domain.com/Home/french/wp-content/themes/catch-box/style.css
    but that directory do not exist either

  6. Your stylesheets are in /wp-content/themes/catch-box/style.css

    The magic is this - REMOVE the sitename.

    That's where they are on the server.

  7. Bettinaba
    Member
    Posted 7 months ago #

    I am confused....the background image for one site is

    body.custom-background {
    background-image: url("http://domain.com/Home/wp-content/uploads/sites/5/2013/09/hav8b.jpg");
    }

    At another site the imaeg is:
    "http://confidere.in/Home/wp-content/uploads/sites/2/2013/09/hav8.jpg");

    That means a site specific image is loaded.

    I want to load the same image from the same source so there is no "flickering" in the background while changing site. It will also simply just having one image while updating and not needing to update four image galleries and four "background settings"

    Where is that code if not in a site specific CSS?

    I think the "Ads" about multilingual sites talks about the advantage of having site specific CSS files so I presumed this was the case. I do however not want it at all - I want one and only one CSS file using exact the same images. How do I fix that?

  8. You're mixing apples and oranges, for understandable reasons.

    1) Images are per site, and stored in Home/wp-content/uploads/sites/NUMBER

    2) Themes and plugins are SHARED between all sites, and live like they always do in Home/wp-content/themes and Home/wp-content/plugins

    HOWEVER. The same way that Home/sitename is virtual, WP calls the location of these things in a 'relative' way. So if I go to domain.com/Home/sitename/ it will pull images from domain.com/Home/sitename/wp-content/uploads/sites/NUMBER and so on and so forth.

    This is the basis of a virtual sites :) It's okay. This is how it's supposed to work.

    body.custom-background {
    background-image: url("http://domain.com/Home/wp-content/uploads/sites/5/2013/09/hav8b.jpg");
    }

    At another site the imaeg is:
    "http://confidere.in/Home/wp-content/uploads/sites/2/2013/09/hav8.jpg");

    That means a site specific image is loaded.

    [...]

    Where is that code if not in a site specific CSS?

    Actually that entirely depends on the theme. If your theme has a way to upload background images and headers, then it stores them in that site's media library, the exact same way it does for single install of WP. :) Nothing changed here.

    So back to this question:

    I cannot find the directory for the language specific stuff.

    At the /Home directory on the server I cannot find any directory named "english" or any other landguage root. I only fund wp-admin, wp-content etc and a few files.

    There is no folder for the language specific directory, it's 100% virtual.

    There IS a folder for per site images.

    I think the "Ads" about multilingual sites talks about the advantage of having site specific CSS files so I presumed this was the case. I do however not want it at all - I want one and only one CSS file using exact the same images. How do I fix that?

    No idea what you're talking about with 'Ads' but in general, you would need to install a plugin to handle per site CSS (I use JetPack which has a Custom CSS plugin). Alternately, you can put the images shared for all sites in the theme directly (well, a child theme - you'd never edit a theme directly, right? Right) or the plugin you create to do whatever this 'ad' thing is :)

Reply

You must log in to post.

About this Topic

Tags

No tags yet.