Book Image

Learning Magento Theme Development

By : Richard Carter
Book Image

Learning Magento Theme Development

By: Richard Carter

Overview of this book

Table of Contents (15 chapters)
Learning Magento Theme Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

Magento is now the most popular e-commerce platform in the world, and distinguishing your store from others has become more important than ever.

This book introduces Magento theming to web designers and developers with a basic understanding of HTML and CSS upwards, who want to discover the secrets of theming Magento for both client projects and their own projects.

What this book covers

Chapter 1, Introduction to Magento and Magento Themes, provides an introduction to the topic, including exploring what a Magento theme is, Magento theme terminology including Templates, Layouts, and Skins, and the Magento theme hierarchy.

Chapter 2, Magento Theming Basics, gets you started with your new Magento theme, from enabling a new theme in Magento to changing the logo, customizing the product watermark images, disabling Magento's caches, and using Magento's Template Path Hints tool, as well as creating a new Magento theme.

Chapter 3, Magento Templates, provides simple layout styling for your Magento theme, customizing your store's header and footer, and the search box, and covers how to add a static block to a template, as well as styling your checkout and cart page.

Chapter 4, Magento Layout, looks at adding a local.xml file to your theme, changing the default page template, adding a static block to a page using the Magento layout, changing the order of blocks in Magento's sidebar using layout, removing unnecessary blocks in Magento's sidebar, and adding a new products list to your store's home page.

Chapter 5, Social Media and Magento, covers integrating a Twitter feed with your Magento store, integrating a Facebook page with your Magento store, including social share buttons on your product pages to help increase your store's reach, and integrating product videos from YouTube with product listings.

Chapter 6, Advanced Magento Theming, explores adding a custom print style sheet for your Magento store, using locales to translate labels/phrases in your store, using @font-face in Magento, styling Magento's layered navigation, creating a custom 404 "not found" error page, and using microformats for rich snippets to enhance search engine listings.

Chapter 7, Magento Theming for Mobile and Tablet Devices, walks the reader through how to use CSS media queries to create breakpoints for different device widths, making images responsive to your Magento theme, developing responsive navigation for your Magento theme, and adding mobile home page icons for Windows and Apple devices to your Magento theme.

Chapter 8, Magento E-mail Templates, covers hanging the default e-mail template logo to altering colors of the e-mail templates and altering variables in Magento e-mail templates, as well as adding static block content to your Magento e-mail templates.

What you need for this book

You will need access to a working installation of Magento Community Edition 1.8 or newer, and your preferred code-editing software.

Who this book is for

If you are a web designer or web developer who is familiar with XML, HTML, and CSS, who wants to learn the fundamental building blocks of creating a Magento theme, this book is for you. A basic understanding of PHP is helpful but not required.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "In Magento, skin files are located in the /skin/frontend/ directory."

A block of code is set as follows:

* {
margin:0;
padding:0;
}
img {
border:0;
vertical-align:top;
}
a {
color:#1e7ec8;
text-decoration:underline;
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

* {
margin:0;
padding:0;
}
img {
border:0;
vertical-align:top;
}
a {
color:#1e7ec8;
text-decoration:underline;
}

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "You might notice that there are many superfluous blocks in the sidebar, such as the BACK TO SCHOOL and COMMUNITY POLL blocks, which would not be required on a usual e-commerce website."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.