Book Image

WordPress Responsive Theme Design

By : Dejan Markovic
Book Image

WordPress Responsive Theme Design

By: Dejan Markovic

Overview of this book

<p>WordPress is a free and open source blogging tool, which runs on a web hosting service. It is used to implement responsive themes, to make WordPress sites optimized for mobile devices.</p> <p>This book will teach you how to design and develop your very own responsive WordPress theme and also submit your theme to the WordPress.org repository. The book starts with an introduction to the Responsive Web Design concepts and techniques. Then, it explains how to set up a local WordPress environment and also helps you understand the structure of the WordPress theme. Finally, we learn to create responsive comments in WordPress and also have a look at static pages and index templates. By the end of this book, you will have a better understanding of responsive theme development in WordPress and a WordPress Codex.</p>
Table of Contents (17 chapters)
WordPress Responsive Theme Design
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

If you want to leave your mark in the wonderful world of WordPress, then continue reading. This book will teach you how to develop and customize your very own responsive theme in WordPress. The added benefits for you are that you will get a lot of useful tips and tricks throughout the book intended to make your life easier. We will provide you with the essentials in the development of the responsive theme in WordPress and the rest is up to you and your imagination!

What this book covers

Chapter 1, Responsive Web Design with WordPress, introduces you to the concepts and techniques of responsive web design and walks you through the process of setting up a WordPress environment.

Chapter 2, Understanding the WordPress Theme Structure, teaches you about the WordPress theme architecture and the purpose of the most important template files.

Chapter 3, Getting Started with Responsive Layout, starts your development journey where you will learn how to choose the right tool for your project (text editor or IDE), how to set up functions.php and styles.css, set fonts and font-icons, add morenizr.js and respond.js essential scripts, and how to add media queries.

Chapter 4, Learn How to Create the Header and Navigation, teaches you about the most important component of any website—navigation!

Chapter 5, Customizing Single Post Templates, focuses on the post templates and their components: title, meta, and navigation. In this chapter, we are setting up a basic layout that we will later expand with the index templates and static pages.

Chapter 6, Responsive Widgets, Footer, and Comments, introduces you to the magic world of widgets, footer, sidebar, and comments with a lot of useful tips and tricks.

Chapter 7, Working with Images and Videos, starts with something fun and, as some might say, the most interesting components of any website—images and videos. In this chapter, you will learn about featured images, image captions, image galleries, and how to work with videos.

Chapter 8, Working with Template Files, focuses on the most important files for the WordPress themes. In this chapter, you will understand the WordPress template hierarchy, understand the functionality of archive pages and you will find excerpts on how to customize the paging navigation, style and sticky post, and also how to modify archive.php, 404.php, and search.php.

Chapter 9, Working with Static Pages and Adding the Extra Functionality with Plugins, wraps up the development part of our book. In this chapter, you will learn about static pages, sliders, shortcodes, how to make your home page responsive, and how to make the contact us page.

Chapter 10, Submitting Your Theme to WordPress.org, covers how to test your theme and polish your code before the submission, and helps you learn how to submit your theme to the WordPress.org repository.

What you need for this book

The software applications that are recommended for this project are XAMPP, WAMP, and MAMP please choose one that fits your needs. Also, it would be beneficial to have the WordPress installed locally or on the hosted environment.

Who this book is for

This book is intended for all of you WordPress enthusiasts who want to develop and customize your very own WordPress responsive theme. Some knowledge of WordPress, PHP, MySQL, HTML, and CSS is expected from you.

Conventions

In this book, you will find a number of text styles 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: "Make sure that the theme directory is named topcat and not topcat_start."

A block of code is set as follows:

@media only screen and (max-width: 480px) {
  //mobile styles
  // up to 480px size
}

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

<div id="page" class="hfeed site topcat_page">

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The tagline can be found and set in wp-admin by navigating to Settings | General."

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 disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in 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 at 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 from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. 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.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/8456OS_ColorImages.pdf.

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 could 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 to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted 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

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.