ModularMerchant
Knowledge Base
Shopping Cart Software Online Manual
Introduction to editing responsive template packages
Have your store match a website that links to it Link your company logo to a different website
Location Home > Shopping Cart Software Components > Administration Area > Design > FAQs & Tutorials

Introduction to editing responsive template packages

The responsive template packages produced by Modular Merchant are designed using the Twitter Bootstrap "Fluid layout".

There are two main types of template package customization: customizing the appearance, and customizing the content.
 
Customizing the appearance of a responsive template package

The appearance of a responsive template package is determined by several layers of CSS styles. At the top layer are styles contained within the template_styles.css stylesheet. These styles create the unique appearance of a specific template packages, such as colors, fonts, sizes, images, and textures.

For simplicity's sake, it is recommended that custom CSS styles are added to the template_styles.css stylesheet.

As an alternative, a brand new custom stylesheet could be created to contain all of the customizations. It would be necessary to add a link to this new stylesheet in the head section of each template in the template package. The new link should be immediately after the existing stylesheet links. The new custom stylesheet would then be the top CSS layer, and template_styles.css would be the layer immediately below it.

example
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/template_styles.css" rel="stylesheet">
<link href="css/custom_styles.css" rel="stylesheet">

With this approach, it would be possible to reset the template package back to the default CSS simply by deleting the link to the custom stylesheet from all templates. It could also simplify the customization process, since it would not be necessary to search the template_styles.css file for the rule set to be customized. Adding the desired rule set to the new custom stylesheet would automatically overwrite the rule set in the template_styles.css stylesheet, because of the cascading nature of CSS. Styles within a stylesheet that is linked later in the template have a higher priority than styles within a stylesheet that is linked earlier in the template.

The layer below template_styles.css consists of styles within the bootstrap-responsive.css stylesheet. The bootstrap-responsive.css stylesheet contains style variations for different screen sizes. This stylesheet includes a large number of media queries, and may be a useful reference when determining which elements have different rules based on different screen sizes. However, it is strongly recommended to avoid altering the bootstrap-responsive.css stylesheet. Customizations should be made to the top level template_styles.css stylesheet instead.

The layer below bootstrap-responsive.css consists of styles within the bootstrap.css stylesheet. The bootstrap.css stylesheet contains the default styles of the bootstrap framework itself. This stylesheet is a huge file, and it is strongly recommended to avoid altering the bootstrap.css stylesheet. Customizations should be made to the top level template_styles.css stylesheet instead.

At the base layer, there are styles from the shopping cart's universal.css stylesheet. The universal.css stylesheet is used by all template packages created by Modular Merchant, but by default is not included for editing in any template package. The universal.css stylesheet includes styles for elements common to all template packages, such as error and success messages, "More Info" and "Add to Cart" buttons, etc.

Although the universal.css file is not present in template packages by default, it is possible to add include the file when downloading a template package through the Download link in the Template Package Sandbox. The downloaded template package may then be uploaded through the Upload a new Template Package link in the Template Package Sandbox, and the universal.css stylesheet will then be available for review and editing.

A simpler option for customizing universal styles, and the recommended solution, is to simply overwrite the default universal styles with by adding the desired customizations to the template_styles.css stylesheet.
 
Customizing the content of a responsive template package

The content of a responsive template package is determined by the content of the templates within the package. A template primarily consists of HTML code and QuickCode Tags, but may also contain JavaScript, PHP code, and CSS (in addition to the CSS stylesheets contained within the template package).

For simplicity's sake, it is recommended to restrict the template package to as few templates as possible.

Every template package must contain the universal template, and the universal template will be applied to every storefront page that does not have an individual template assigned and present in the template package.

In order to customize the content and layout of the navigation header of a responsive template package, it is necessary to edit the HTML templates within that template package. If the only template in the package is the universal template, then customizations to that one template will automatically be applied to the entire storefront.

However, if the template package contains multiple templates, then each template must be edited individually in order to apply the same customizations to the entire storefront. For instance, a template package might contain universal.tpl and index.tpl. If the navigation header in universal.tpl is customized, but the navigation header in index.tpl is not customized, then the store's index page will continue to use the default navigation header, while all of the other storefront pages will use the custom navigation header from the universal template.

Common customizations for the navigation header include adding or removing options from the horizontal navigation menu, and adding or removing options from the customer account dropdown menu.

regarding customized html templates
We're always happy to help when we can, but once a template's HTML code has been customized by a third party, troubleshooting those customizations falls outside of what Modular Merchant can provide within our range of free technical support.

Fixing larger template issues may require paid development time. We evaluate each request on a case-by-case basis. If a request is so large that it requires a custom web design project to resolve, we will always provide a proposal for the client's approval prior to performing any billable work.


— Last Edited - 08/16/2013 3:09pm PDT
Rank and add a comment to this article
Only logged in users may leave comments and rank articles. Log in to have your say!
  Knowledge Base Home

  QuickCode™ Tag Glossary

  Modular Merchant.com Homepage

Not Logged in.
Either Log in or create a User Account.

Other articles in this category...

Add "Search by Price" links to the storefront

Add a "Terms of Service" agreement to a store page

Add a favicon

Add images to an email template

Adding a Company Name field to the storefront

Can QuickCode Tags Be Used in PHP Statements?

Can QuickCode Tags be used on non-store webpages?

Common customizations for the Order Receipt email

Copy a template package

Create a custom version of any QuickCode Tag

Create reusable headers/footer with Custom QuickCode Tags

Creating a Customer Registration Form

Creating templates with content viewable only by specific Customer Groups

Customize the category template to display subcategories in a grid

Customize the navigation header of a responsive template

Customize the navigation header of a responsive template

Customize the tabbed content area of a responsive product template

Disabling featured product display

Display a message if a customer has already purchased a product

Display a slideshow on any store page

Display sale prices in red text

Have your store match a website that links to it

Introduction to editing responsive template packages

Link your company logo to a different website

List of available Templates for use in Template Packages

Playing Flash video instead of downloading it

Require service agreement when a specific product is purchased

The difference between templates and web pages

Troubleshooting Missing Images

Untranslated Red QuickCode Tags

Using "Add to Cart" links on your website.

Using comments in Custom QuickCode Tags

Using the Custom Webpage Editor to add links to your Storefront

Your storefront on smartphones & mobile devices

Creating Template Packages: Part 1 of 4

Creating Template Packages: Part 2 of 4

Creating Template Packages: Part 3 of 4

Creating Template Packages: Part 4 of 4