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:
- Open the
head.php
file in thetemplates
folder. - Add links to our
favicon.ico
andapple-touch-icon-precomposed.png
files using the WordPress PHP functionget_template_directory_uri()
to begin the file path. Then, reach into ourico
folder inside theassets
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(); ...
Get Bootstrap Site Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.