This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:design_adv:convert_design_rwd [2013/10/02 16:26] jonyo [Instructions] |
tutorials:design_adv:convert_design_rwd [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
====== Make your Template Set Use RWD ====== | ====== Make your Template Set Use RWD ====== | ||
- | |||
- | <tip c w>**THIS IS A WORK IN PROGRESS** - don't go following these instructions just yet, we're still working on them! We'll have this tutorial finished for you by the time 7.3 final ships.</ | ||
===== Warning / Info About These Instructions ===== | ===== Warning / Info About These Instructions ===== | ||
Line 62: | Line 60: | ||
< | < | ||
- In the admin, at **Design > Template Sets**, click the button to **Create Main Template Set**, and name it " | - In the admin, at **Design > Template Sets**, click the button to **Create Main Template Set**, and name it " | ||
- | - Copy the following 3 files from the **rwd_reference** template set you created, to your own, in the same folder: | + | - Copy the following 3 files from the **rwd_reference** template set you created, to your own, in the same folder: |
* main_page/ | * main_page/ | ||
* main_page/ | * main_page/ | ||
* main_page/ | * main_page/ | ||
+ | You can use **FTP** or the admin interface at **Design > Manager**, whichever you are more comfortable with. Note that later in the tutorial we will be using these 3 as " | ||
+ | - Edit each of the files you just copied, and copy in any customizations. The " | ||
+ | * Open up your own **head.tpl** file, and any customizations such as meta tags added, custom JS, things like that: copy the customizations in to the **< | ||
+ | * When doing this, do not change the // | ||
+ | < | ||
+ | - For the **header.tpl** template file, if you have not changed the top part very much from the default design, use **Design > Manager** to edit the file and click the blue back arrow, to reset the contents to the new version from the default template set. If on the other hand, you have customized the top section, you will need to make some adjustments by hand to make the top have a responsive look. Here are a few guidelines for customizing this: | ||
+ | * If you plan to part with the default look, be sure to use different CSS classes to avoid having to reset the built-in behavior. < | ||
+ | * Start with designing the small (mobile) look. Keep in mind this will be at top of the page on every page, so ideally it should be very compact and take up as little room as possible. It is probably a good idea to tuck any menu links into a hidden section that is revealed with a menu link similar to how the default works, or perhaps an "off canvas" | ||
+ | * With smaller screens it is best to get to the " | ||
+ | * Once you have the small version of the header working, work on the larger version. | ||
+ | * To do so you will need to set up a "media breakpoint", | ||
+ | * For the header, start the "large version" | ||
+ | * Once you have the larger view like you like it, change the size of your browser, and find what the " | ||
+ | < | ||
+ | - For the **footer.tpl** file, well it's pretty much the same as the instructions for the **header.tpl** file. Either replace yours with the contents of the new default **footer.tpl** template, or you will need to make it work from scratch. | ||
+ | - Customize the 1, 2, and 3 column templates that you copied into your custom template set a few instructions back. Insert " | ||
+ | * As with the rest of this, work on the mobile version first. | ||
+ | * We recommend to **not limit** your visitors using smaller screens, meaning that we advise against hiding parts of the page from mobile devices in an effort to "un clutter" | ||
+ | * Be sure to get it just like you like it now before you start using this as the starting point for all of the rest of your templates! < | ||
+ | < | ||
+ | - For **basic_page.tpl** - In your custom design, do you use 1 column layout, 2 columns, or 3 columns? | ||
+ | - Repeat the last step for the rest of your " | ||
+ | - Browse the site and make sure everything looks good. Be sure to test every nook and cranny to make sure everything looks like you want, both in desktop size and in mobile size. < | ||
- | You can use **FTP** or the admin interface at **Design > Manager**, whichever you are more comfortable with. < | ||
- | - Edit each of the files you just copied, and copy in any customizations. The " | ||
- | |||
- | So open up your own **head.tpl** file, and any customizations such as meta tags added, custom JS, things like that: copy the customizations in to the **< | ||
- | |||
- | When doing this, do not change the // | ||