How to create a separate mobile phone theme

Release time:2017年04月24日 Author:Catfish CMS Reading volume:67708

Mobile site  access site is one of the current mainstream applications, so a good  site needs to be able to meet the computer side and the phone side of  the visit, and have a good visual effect.


To solve this problem, there are two solutions:

One is designed to adapt to the site;
Second, respectively, the design of a separate computer and mobile phone side of the program.


Catfish CMS  (including front and back) adaptive design, which ensures that you use  Catfish (catfish) CMS site can be built on different sizes of the screen  and easy to use. But because of the relatively  high degree of adaptive design, adhering to the principle of simple,  since the beginning of version 4.2.35, the system takes into account the  two solutions, that is, you can use an adaptive way to design the theme  of the site, You can design a theme in a separate way.


Of course, all this is also very simple^_^


Mobile-specific theme of the production method:

In the original theme folder under the new folder "mobile", the phone-side theme files into the "mobile" folder can be. Into the "mobile" folder under the file name and the file with the original theme of the production. E.g:

We open the "mobile" folder, you can see the file structure is as follows:

This file structure and the original is the same, and is one by one correspondence.
It should be noted that the mobile phone theme to refer to the header file and footer file to add "mobile" path.

For example, refer to the header file:

The original caption is: {include file="public/default/header.html" /}

The subject of the phone is: {include file="public/default/mobile/header.html" /}

The reference footer file is also the same.


If you use an adaptive way to design a theme, you do not need to add the "mobile" folder.


Original article, reproduced please specify:How to create a separate mobile phone theme | Catfish(鲶鱼) CMS

Reward

I want to comment Sign in to post a comment

User comments


樂孝恩

Comment time:2017-07-17 00:23:29

好貼心的規劃


Latest release

bootstrap4如何实现div的水平居中以及垂直居中

bootstrap是一款十分流行的前端组件库,我们在制作模板的时候,使用bootstra...

鲶鱼CMS的页面设置中如何增减数量

Catfish(鲶鱼) CMS自版本4.9.6开始支持对页面设置可增减操作,我们来看一下...

网站二次开发的正确姿势

经常有用户朋友问我关于二次开发的问题,现在将这个问题比较详细地说一下。 过来问我关于二...

css样式处理超长的连续字母或数字,实现自动换行

有的伙伴建站以后,会在自己的网站分享一些链接,并且有些链接是超长的,由于链接一般都是由字...

绿色目录主题标准版 GreenD theme for Catfish...

主题名称:绿色目录主题标准版 GreenD theme for Catfish-CMS主...

MIME在form表单的文件上传中的应用

我们在制作文件上传时,通常会使用HTML标签“<input type="...

How to use the Catfish CMS system

Section 1: How to add articles

Management background is composed of five bl...

Section 2: to the article to add c...

In the previous section, we talked about how...

Section 3: Add a menu to your site

In the previous section we talked about how ...

Section 4: Page Setup

To the last section we have learned to use t...

Section 5: Change website name, LO...

By the end of the previous section, we have ...

Copyright © 2015 - 2019 Catfish(鲶鱼) CMS
Catfish(鲶鱼) CMS〖181836340〗 Catfish(鲶鱼) CMS 二群〖292598750〗

   I want to leave a message
Catfish(鲶鱼) CMS V 4.9.18