1

Restoring site's backup, results in not loading sites asset e.g. style.css and .js files. I checked the site and notice the link to theme asset:

site.com%20/wp-content/themes/themename/style.css

as you can see, the %20 after the domain is cause the problem. The link above generated from bottom code in functions.php:

 wp_enqueue_style( 'theme-style', get_stylesheet_uri() );

I checked Site URL in wp settings and it's Ok, also links in functions.php are Ok. So where should I go from here ? Where that extra %20 came from ?

Thanks.

  • 1
    Note that %20 is the URL-encoding of a space, so make sure that there is no trailing whitespace in the URL too. – Rup Jan 7 '17 at 7:11
1

Check your wordpress db table wp_options and from there check option name : siteUrl and home url and change %20 from there.

| improve this answer | |
  • Ah...that was the problem and now it solved with your help ImSarah. I appreciate your effort. – startToday Jan 7 '17 at 7:55
  • @startToday NP.. Happy you solvrd your problem.. :) – ImSarah Jan 9 '17 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.