Skip to content

jsonpeng/zhichenSite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

company-logo

智琛佳源网站主题改版


一个wordpress主题通过php+html+css编写为新的网站改版,可通过进入wordpress的wp-admin进入后台在主题中切换

下载代码


  • git clone https://git.oschina.net/zcjy/website.git
  • ssh:git@git.oschina.net:zcjy/website.git

使用代码 / 部署上线

前置条件:

  • linux服务器
  • 配置安装好php环境及mysql数据库
  • 配置安装好git
  • zip/tar.gz格式的wordpress安装包(点击下载)

使用

cd /你的静态目录/

如果是zip格式的wordpress安装包,使用

unzip 安装包名

接下来

cd wordpress/wp-content/themes/
git clone https://git.oschina.net/zcjy/website.git

此时主题目录和wordpress已经成功安装,接下来需要配置nginx服务器,将你的自定义.conf放置到指定nginx指定的目录,使用命令

mv 你的自定义.conf  /etc/nginx/conf.d/

接下来指定域名绑定到指定IP(服务器提供商提供的链接绑定),其中conf的大致格式为

server{
listen 80;
#listen [::]:80 ipv6only=on default_server;
server_name zcjy2.wiswebs.com(指定域名);
    set $root_path '/var/www/website/zhichen'(你的wordpress安装目录);
root $root_path;
 
index index.php;

location / {
	try_files $uri $uri/ /index.php?$query_string;
}
#try_files $uri $uri/ @rewrite;

#location @rewrite {
#		rewrite ^/(.*)$ /index.php?_url=/$1;
#}

location ~ \.php {
		fastcgi_pass 127.0.0.1:9000;
		fastcgi_index /index.php;

		include /etc/nginx/fastcgi_params;

		fastcgi_split_path_info       ^(.+\.php)(/.+)$;
		fastcgi_param PATH_INFO       $fastcgi_path_info;
		fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
		root $root_path;
}

location ~ /\.ht {
		deny all;
}
    }

网站预览

company-logo

网站主页:http://zcjy2.wiswebs.com

网站后台:http://zcjy2.wiswebs.com/wp-admin(后台账号root,密码root)

网站菜单结构


菜单

代码结构

网站所有静态文件

网站公有部分

首页        index.php

服务项目页面 page-service.php

    --网站建设页面 page-service.php

    --H5页面      page-h5.php

精彩案例页面 page-example.php

    --pc端案例 page-example-pc.php

    --H5案例   page-example-h5.php

        --pc端及H5案例子页面模板 single.php(判断模板类型是否是案例或者新闻)

           -案例子页面single-example.php(显示)

关于我们页面 page-about.php

新闻中心页面 page-news.php

    --新闻子页面 single.php(判断模板类型是否是案例或者新闻)

      -新闻页面 single-news.php(显示)

特别注意

  • 网页中除案例数字以为统一字体使用微软雅黑

  • 网页正文中所有标题下的描述文字字体以及导航文字大小为16px 并且需要居中

  • 小p的描述文字颜色统一为#999

  • 移动端字体描述宽度尽量使用100%

  • 文字换行避免使用br

About

官方网站基于WordPress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors