nginx - Wordpress theme not recognized -


in local, works. here use rocketeer deploy project.

in server, here wp-content/themes directory

./ ../ foobar/ .gitignore index.php -> /var/www/foobar.example.com/shared/wp-content/themes/index.php twentyfifteen -> /var/www/foobar.example.com/shared/wp-content/themes/twentyfifteen/ 

in admin panel, see twentyfifteen, cannot see foobar.

i'm using nginx here

server {     listen 80;     server_name foobar.example.com;     root /var/www/foobar.example.com/current;      error_page 404 /index.php;      location / {         index index.php;         try_files $uri $uri/ =404;     }      location ~ \.php$ {         include fastcgi_params;         fastcgi_index index.php;         fastcgi_split_path_info ^(.+\.php)(/.+)$;         fastcgi_pass unix:/var/run/php5-fpm.sock;         fastcgi_param script_filename $document_root$fastcgi_script_name;     }      location ~/\.ht {         deny all;     } } 

for wordpress recognized themes need add special header css this:

/* theme name: theme name theme uri: http://wordpress.org/themes/twentythirteen author: name author uri: http://wordpress.org/ description:  version: 1.0 */ 

check out more info https://codex.wordpress.org/theme_development


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -