R
R
rinatx2016-02-03 14:08:34
PHP
rinatx, 2016-02-03 14:08:34

Wordpress does not see my JavaScripts, put the site on hosting, uploaded it to the database, but it does not load them, how to fix it?

I developed a site on a local server, uploaded scripts (JS) to the theme, functions.php file, the site does not find these scripts, and searches in the directory that was on the local server. In the console you can see the full path from where he is trying to load them .. In general, it will be clearer visually, please help link:
aksanapaplus.ru
By the way, if I run a local server, everything works fine ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Krasnov, 2016-02-03
@rinatx

Or you have specified an absolute path.
Either the wp_options database still contains the local site in the seourl and home fields.

R
rinatx, 2016-02-03
@rinatx

Damn, the jamb was found, thanks to everyone, really absolute paths were indicated, but I just didn’t notice ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question