Time for action – adding a touch icon

Once you have a touch icon (which you should have saved as .png or a set of them), you'll need to add them to your theme.

  1. Upload your touch icon to the same folder as your index.html file.
  2. In index.html, add the following code inside the <head> section:
    <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"/>
    <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"/>
    <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"/>
  3. Save your index.html file.

What just happened?

We added a few lines of code to fetch our touch icon to index.php. You'll notice that we included three file sizes:

  • The 57 x 57 pixel icon is what older iOS devices and Android devices will load in
  • The 114 x 114 pixel icon is for high-resolution Retina displays
  • The 72 x 72 pixel icon is for iPads

The icons become available when you save pages as web clips to the home screen like so:

What just happened?

Pop quiz – questions about theme design

Q1. What things should you take into consideration when planning your theme?

  1. What type of site or blog your theme will be for?
  2. How many layouts or "views" your theme will have?
  3. What plugins or widgets will it support?
  4. All of the above.

Q2. What does sketching your theme design accomplish?

  1. It helps you add CSS classes to layout elements.
  2. It helps you see what colors you will be using in your design.
  3. It helps you write better code.
  4. It helps you see your design quickly and start considering usability and content.

Q3. How much sample text should you start with?

  1. Lots – it helps you see what your design will look like when lots of content is added.
  2. As little as possible – to avoid distraction from the design.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.134.29