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 15:18] jonyo updating main warnings / info |
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 8: | Line 6: | ||
These instructions are meant to be followed for sites updating from versions **before 7.3.0** that wish to keep their existing design, but would like to make it use newer RWD techniques to make it more " | These instructions are meant to be followed for sites updating from versions **before 7.3.0** that wish to keep their existing design, but would like to make it use newer RWD techniques to make it more " | ||
- | **Compatible Design Warning: | + | We do not recommend following the instructions, as for most sites it will actually |
+ | ==== Compatible Design Warning ==== | ||
- | **For Update Friendly Template Sets Warning: | + | If your design first started from versions |
+ | |||
+ | If you fall into this group, you will likely need to convert the design on your own (or hire a designer to do this for you if you wish), or you might consider " | ||
+ | |||
+ | Something to keep in mind is that we spent roughly 2 months working on overhauling the default design, to make the design responsive and " | ||
+ | |||
+ | ==== 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 | ||
+ | |||
+ | If you aren't sure, check your template set, if it has " | ||
+ | |||
+ | **Note:** Be sure to read [[tutorials: | ||
===== Instructions ===== | ===== Instructions ===== | ||
- | - First, | + | - 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" |
- | - In your **custom** template set((Do | + | - Using FTP program such as Filezilla, or the admin interface |
- | * system/ < | + | * default/ |
- | | + | |
- | * addon/ < | + | * default/ |
- | * external/js/ (The JS sub-folder only, do not delete the entire external folder) < | + | * //[your template set]///external/css/**primary_theme_styles.css**((Replace // |
- | < | + | |
- | - In your **custom** template set((Do **not** do this to the default | + | * //[your template set]/// |
- | - In your **custom** template set((Do **not** do this to the default | + | If using FTP, these will be in the geo_templates/ folder. |
- | /* | + | Download |
- | * Leave first line of this file intact to make software updates easier! | + | - This step is **optional but recommended**: To reduce |
- | * | + | Use a program like **Winmerge**, to merge the files together, in such a way that the file from your own template set would " |
- | * File manually copied using Rev: # | + | |
- | */ | + | |
- | </ | + | |
- | <tip c h> | + | |
- | < | + | |
- | | + | |
- | /* | + | The end result is that for each of the **theme_styles.css**, **primary_theme_styles.css**, |
- | * 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 template set! These instructions should only be applied to your custom template set, the one you need to make " | + | |
- | /* | + | 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. < | ||
+ | |||
+ |