Skip to content

Instantly share code, notes, and snippets.

@AnnaCrumina
Forked from crumina/Onetouch title change
Last active August 29, 2015 14:15
Show Gist options
  • Save AnnaCrumina/024de7e99c89b0f1a381 to your computer and use it in GitHub Desktop.
Save AnnaCrumina/024de7e99c89b0f1a381 to your computer and use it in GitHub Desktop.
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);
@AnnaCrumina
Copy link
Author

remove pipe in the theme title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment