[theme-reviewers] improve wp-header.php?
Ivan Miletić
ivan2704 at gmail.com
Sat Sep 28 12:08:56 UTC 2013
Well as Wordpress was primary blogging tool it has many things in header
that are related to blogging like previous next links, canonical links,
generator meta for debugging.
Bones header is similar to other headers because it takes that junk oun
with function *bones_head_cleanup()* (library/bones.php file, line 62). You
can easily integrate that or similar function in every theme :).
*--
Ivan Miletić*
On Sat, Sep 28, 2013 at 1:20 PM, nan at designpromote.co.uk <
nan at designpromote.co.uk> wrote:
> themble.com/bones claims that WordPress throws a ton of junk in the
> header. Bones takes a lot of it out.
>
> However, I can't find much difference on Bones' header.php (listed as
> below)
>
> Is it over stated, or wp-header.php has room to optimize?
>
> Regards,
> Nan
>
> /* Bones' header.php*/
> <!doctype html>
>
> <!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9
> lt-ie8 lt-ie7"> <![endif]-->
> <!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?>
> class="no-js lt-ie9 lt-ie8"><![endif]-->
> <!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?>
> class="no-js lt-ie9"><![endif]-->
> <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?>
> class="no-js"><!--<![endif]-->
>
> <head>
> <meta charset="utf-8">
>
> <!-- Google Chrome Frame for IE -->
> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
>
> <title><?php wp_title(''); ?></title>
>
> <!-- mobile meta (hooray!) -->
> <meta name="HandheldFriendly" content="True">
> <meta name="MobileOptimized" content="320">
> <meta name="viewport" content="width=device-width,
> initial-scale=1.0"/>
>
> <!-- icons & favicons (for more:
> http://www.jonathantneal.com/blog/understand-the-favicon/) -->
> <link rel="apple-touch-icon" href="<?php echo
> get_template_directory_uri(); ?>/library/images/apple-icon-touch.png">
> <link rel="icon" href="<?php echo get_template_directory_uri();
> ?>/favicon.png">
> <!--[if IE]>
> <link rel="shortcut icon" href="<?php echo
> get_template_directory_uri(); ?>/favicon.ico">
> <![endif]-->
> <!-- or, set /favicon.ico for IE10 win -->
> <meta name="msapplication-TileColor" content="#f01d4f">
> <meta name="msapplication-TileImage" content="<?php echo
> get_template_directory_uri(); ?>/library/images/win8-tile-icon.png">
>
> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
>
> <!-- wordpress head functions -->
> <?php wp_head(); ?>
> <!-- end of wordpress head -->
>
> <!-- drop Google Analytics Here -->
> <!-- end analytics -->
> /*****/
>
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130928/12eb992c/attachment.html>
More information about the theme-reviewers
mailing list