Created
February 17, 2015 07:59
-
-
Save crumina/e0be46524f50a6f322c3 to your computer and use it in GitHub Desktop.
Change title in head [ONETOUCH]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cr_custom_do_reactor_head() | |
{ | |
global $one_touch_option; ?> | |
<meta charset="utf-8"/> | |
<title><?php wp_title(); ?></title> | |
<!-- google chrome frame for ie --> | |
<!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]--> | |
<?php | |
if ($one_touch_option['responsive_mode']) { ?> | |
<!--[if IE]> | |
<meta name="HandheldFriendly" content="True"> | |
<meta name="MobileOptimized" content="320"><![endif]--> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<?php } else { | |
echo '<style type="text/css"> body {min-width:1200px;} </style>'; | |
} ?> | |
<?php $favicon_uri = $one_touch_option['custom_favicon']['url'] ? $one_touch_option['custom_favicon']['url'] : get_template_directory_uri() . '/favicon.ico'; ?> | |
<link rel="icon" type="image/png" href="<?php echo $one_touch_option['custom_favicon']['url'] ?>"> | |
<link rel="shortcut icon" href="<?php echo $favicon_uri; ?>"> | |
<?php | |
} | |
function crum_replace_logo_url(){ | |
remove_action('wp_head', 'reactor_do_reactor_head', 1); | |
add_action('wp_head', 'cr_custom_do_reactor_head', 1); | |
} | |
add_action('init', 'crum_replace_title', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment