Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Bootstrap Site Blueprints
  • Table Of Contents Toc
  • Feedback & Rating feedback
Bootstrap Site Blueprints

Bootstrap Site Blueprints

4.2 (10)
close
close
Bootstrap Site Blueprints

Bootstrap Site Blueprints

4.2 (10)

Overview of this book

Table of Contents (16 chapters)
close
close
Bootstrap Site Blueprints
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Adding icon links


To make our theme more easily portable, we need to add links for the favicon.ico and apple-touch-icon-precomposed.png files in the head.php template file:

  1. Open the head.php file in the templates folder.

  2. Add links to our favicon.ico and apple-touch-icon-precomposed.png files using the WordPress PHP function get_template_directory_uri() to begin the file path. Then, reach into our ico folder inside the assets folder for the files shown as follows:

    <!-- Icons -->
    <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" href="<?php echo get_template_directory_uri(); ?>/assets/ico/apple-touch-icon-precomposed.png">
  3. Save and refresh the file, and depending on your browser's behavior, you should see your favicon appear.

    Here is the screenshot of my resulting favicon in the Google Chrome browser:

Now we just need to attend to a couple of last details to address the specific...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY