Home>Support>Inline css not loading

Inline css not loading

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello there,
CSS snippet:
/* Layout 17 */ #pgc-17-0-0 , #pgc-17-1-0 , #pgc-17-3-0 , #pgc-17-4-0 , #pgc-17-5-0 , #pgc-17-6-0 , #pgc-17-7-0 , #pgc-17-8-0 , #pgc-17-9-0 , #pgc-17-10-0 { width:100%;width:calc(100% – ( 0 * 30px ) ) } #pl-17 #panel-17-0-0-0……..

The above inline css is added to the production site but not to the development site. I zipped source code and database from the live server and unpacked those on the development server, but the css is not being added. I’ve changed all the reference to production server to development server in the database and in the code. Could you please give me a hint about why it is happening? A plugin is missing in the zip file or something? I don’t have access to production server, so I can’t make sure.
Any help will be greatly appreciated!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 5 months ago forspecial0

    Sorry the css snippent is

    /* Layout 17 */ #pgc-17-0-0 , #pgc-17-1-0 , #pgc-17-3-0 , #pgc-17-4-0 , #pgc-17-5-0 , #pgc-17-6-0 , #pgc-17-7-0 , #pgc-17-8-0 , #pgc-17-9-0 , #pgc-17-10-0 { width:100%;width:calc(100% – ( 0 * 30px ) ) }

  2. 6 years, 5 months ago forspecial0

    The style tag has a id id=”siteorigin-panels-layouts-head”

  3. 6 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Forspecial0,

    I’ve changed all the reference to production server to development server in the database and in the code.

    Can you please elaborate on the changes you made? I ask as Siteorigin Page Builder stores page builder data in a serialized form so if this data is incorrectly edited it could break. What do you see when you edit a SiteORigin Page Builder powered page in the editor? SiteOrigin Page Builder?

    We recommend using Duplicator or All-in-One WP Migration to create a development version rather than doing a manual migration.

  4. 6 years, 5 months ago forspecial0

    Hi Alex,
    I run sql queries like the following to replace the live the site domain name with the development site domain in the mysql database tables:
    update wp_options set option_value = REPLACE(option_value,’http://live-site-domain’,’http://dev-site-domain’);
    Update wp_posts set guid= REPLACE(guid,’http://live-site-domain’,’http://dev-site-domain’);
    Update wp_postmeta set meta_value= REPLACE(meta_value,’http://live-site-domain’,’http://dev-site-domain’);
    Update wp_usermeta set meta_value= REPLACE(meta_value,’http://live-site-domain’,’http://dev-site-domain’);
    Update wp_posts set post_content= REPLACE(post_content,’http://live-site-domain’,’http://dev-site-domain’);

    Like I said before I don’t have access to the live site admin panel, so I had to import the database from the sql file they gave me and then replace strings.

    I replaced the live server project directory references also like below:
    update wp_options set option_value = REPLACE(option_value,’/live-server-project-directory-path’,’/dev-server-project-directory-path’);
    update wp_options set option_value = REPLACE(option_value,’/live-server-project-directory-path’,’/dev-server-project-directory-path’);
    Update wp_posts set guid= REPLACE(guid,’live-server-project-directory-path’,’/dev-server-project-directory-path’);
    Update wp_postmeta set meta_value= REPLACE(meta_value,’/live-server-project-directory-path’,’/dev-server-project-directory-path’);
    Update wp_usermeta set meta_value= REPLACE(meta_value,’live-server-project-directory-path’,’/dev-server-project-directory-path’);
    Update wp_posts set post_content= REPLACE(post_content,’/live-server-project-directory-path’,’/dev-server-project-directory-path’);

    I actually didn’t make any changes in the code base.

    This is my first wordpress site I’m going to maintain, so I can’t tell you if I’m seeing something unusual. The homepage is not loading the css. When I edit the page I can see the following and a button at the bottom of the editor titled ‘Add SiteOrigin Layout Block’

    thanks again for your help

  5. 6 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Forspecial,

    Thanks. Unfortunately, the provided SQL will break serialized data. Please reimport the database (as fixing this data can be quite problematic) and then update URLs using Better Search and Replace.

    When I edit the page I can see the following and a button at the bottom of the editor titled ‘Add SiteOrigin Layout Block’

    This is happening due to the page data breaking. You’ll be able to avoid this issue, by replacing the site urls using the linked Better Search and Replace plugin.

  6. 6 years, 5 months ago forspecial0

    Hi Alex,
    I got the archive and installer files generated by the duplicator plugin from the administrator of live server. There is another issue now. MySQL doesn’t support utf8mb4_unicode_520_ci on the development server. I don’t have any control over the server. The administrator selected the option mysql40 under Compatibility mode and then downloaded archive and installer files, but it didn’t make any difference. I’m still getting error ‘ Unknown collation’ when I’m in step4 of the installation process.
    You’ve been a great help so far, thanks!

  7. 6 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Forspecial0,

    Unfortunately, that’s not something we’re set up to help with – really sorry about this. Your best bet would be to reach out to the administrator of the development server.

  8. 6 years, 5 months ago forspecial0

    Hi Alex,
    Administrator of the development server agreed to give us what we need to setup the site. Thanks a lot for your help, really appreciate it!

  9. 6 years, 5 months ago Alex S
    Hi, I Work Here

    Hi Forspecial0,

    Great to hear! :)
    Please be sure to post another thread if you have any other questions.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More