This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:design_adv:convert_design_rwd [2013/10/02 14:52] jonyo created |
tutorials:design_adv:convert_design_rwd [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== 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.</tip> | + | ===== Warning |
- | These instructions | + | These instructions |
- | Again, I want to make it clear that these instructions are not normally needed, as they re-produce something that the software would normally do for you. | + | We do not recommend following the instructions, as for most sites it will actually be easier to start from the new default design, and re-customize starting from the new design so you are starting from something that is already RWD. |
+ | ==== Compatible Design Warning ==== | ||
- | - First, make a backup of your template set so that you have a copy of all the files, in case anything goes wrong during these instructions. | + | If your design first started from versions |
- | - In your **custom** template set((Do **not** do this to the default template set! These instructions should only be applied to your custom template set, the one you need to make " | + | |
- | * system/ < | + | |
- | * module/ < | + | |
- | * addon/ < | + | |
- | * external/ | + | |
- | < | + | |
- | - In your **custom** template set((Do **not** do this to the default template set! These instructions should only be applied | + | |
- | - In your **custom** template set((Do **not** do this to the default template set! These instructions | + | |
- | /* | + | If you fall into this group, |
- | * Leave first line of this file intact to make software updates easier! | + | |
- | * | + | |
- | * File manually copied using Rev: # | + | |
- | */ | + | |
- | </ | + | |
- | <tip c h> | + | |
- | < | + | |
- | - In your **custom** template set((Do **not** do this to the default template set! These instructions should only be applied to your custom template set, the one you need to make " | + | |
- | /* | + | Something |
- | * Leave first line of this file intact to make software updates easier! | + | |
- | * | + | |
- | * File manually copied using Rev: # | + | |
- | */ | + | |
- | </ | + | |
- | < | + | |
- | - In your **custom** template set((Do **not** do this to the default | + | |
- | /* | + | ==== Update Friendly Template Sets Warning ==== |
- | | + | |
- | * | + | These instructions were made for sites that already have an " |
- | | + | |
- | */ | + | If the template set was originally created by making a full copy of the default templates of the original version using FTP or other means, you will need to follow the [[tutorials: |
- | </ | + | |
+ | If you aren't sure, check your template set, if it has " | ||
+ | |||
+ | **Note:** Be sure to read [[tutorials: | ||
+ | |||
+ | ===== Instructions ===== | ||
+ | |||
+ | - First you will need to copy all CSS used in your design, into a new **custom.css** file in your template set. You may have already done this as part of the "full update instructions", | ||
+ | - Using FTP program such as Filezilla, or the admin interface at Design > Manager, | ||
+ | * default/ | ||
+ | * //[your template set]/// | ||
+ | * default/ | ||
+ | * //[your template set]/// | ||
+ | * default/ | ||
+ | * //[your template set]/// | ||
+ | If using FTP, these will be in the geo_templates/ | ||
+ | |||
+ | Download the files into 2 different folders, one for default and one for your own template set, so that they don't get mixed up.< | ||
+ | - This step is **optional but recommended**: | ||
+ | Use a program like **Winmerge**, | ||
+ | |||
+ | The end result is that for each of the **theme_styles.css**, | ||
+ | |||
+ | If you choose to do this, in the following step you will only be copying in the " | ||
+ | - Copy the contents of each file, into a new file **custom.css** using your favorite text editor such as **notepad++** or **gedit** or similar. Be sure the files are in the same order in the **custom.css** as they are in the list above. | ||
+ | |||
+ | **Omit (remove)** any starting line or lines that start with: [code]@import[/ | ||
+ | If the first line or first few lines of the CSS file starts with that, do not include those lines when you copy the CSS contents | ||
+ | - Use FTP or the admin interface at **Design > Manager** to upload the new **custom.css** that you just created, into your own template set in the **external/ | ||
+ | - In the admin at **Design > Manager**, edit the file **[your template set] / main_page / head.tpl** < | ||
+ | - Remove Each of these lines if any of them exist in the file: <code html>{* Load the theme_styles.css files last, so it can over-write any page/module specific CSS files if desired. *} | ||
+ | <link href=" | ||
+ | <link href=" | ||
+ | <link href=" | ||
+ | If you do not have lines exactly like that, you need to remove any lines that reference **theme_styles.css**, | ||
+ | - Save the changes to the **head.tpl** file. | ||
+ | |||
+ | **Note:** If your own template set does not use head.tpl, you will need to do a search to find and remove any lines that add any of those 3 theme_style files. < | ||
< | < | ||
- | - For most sites, you are almost finished! | + | - In the admin, at **Design > Template Sets**, click the button to **Create Main Template Set**, and name it " |
- | - Copy the customized template back into your cleaned up custom template set, re-creating | + | - Copy the following 3 files from the **rwd_reference** template set you created, to your own, in the same folder: |
- | - If you are following these instructions after an update, check to see if the customized template needs compatibility changes for the version | + | * main_page/ |
- | | + | * main_page/ |
+ | * main_page/ | ||
+ | You can use **FTP** or the admin interface at **Design > Manager**, whichever | ||
+ | - 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 **< | ||
+ | | ||
< | < | ||
- | - In the admin at **Design > Template Sets**, make sure the template set you have just " | + | - 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 |
+ | * 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. | ||
+ | * 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 | ||
+ | < | ||
+ | - For the **footer.tpl** file, well it's pretty much the same as the instructions | ||
+ | - 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 | ||
+ | * 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? | ||
+ | | ||
+ | - 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. < | ||
+ | |||