Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Set Head Title Static Home Page

Home / Forums / Virtue Theme / Set Head Title Static Home Page

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
November 20, 2014 at 10:26 am

Hi Im trying to set the Head title of my home page (the <title></title> ) I have static home page.

I am using a plugin that appends the name of the site (set in general) to the end of all the category page names.

I wish to set this title tag for the home page only (but want to retain the value that is set in general for site name) to be appended to all he category names.

example Genereal SITE TITLE = |Site Name (creates… category titles|Site Name)
Static home page = <title>Some SEO title that is only applied to static home page and not appended to all cat titles</title>

my head looks as below
<head>
<meta charset="utf-8">
<?php if(kadence_seo_switch()) {
?> <title><?php global $virtue_premium; global $post; if ( get_post_meta( get_the_ID(), '_kad_seo_title', true )) { $title = get_post_meta( get_the_ID(), '_kad_seo_title', true ); }
if(!empty($title)) { echo $title; }
else if(!empty($virtue_premium['seo_sitetitle'])) { echo $virtue_premium['seo_sitetitle'];}
else {wp_title('|', true, 'right'); }?>
</title>
<meta name="description" content="<?php global $virtue_premium; global $post; if ( get_post_meta( get_the_ID(), '_kad_seo_description', true )) { echo get_post_meta( get_the_ID(), '_kad_seo_description', true ); }
else if (!empty($virtue_premium['seo_sitedescription'])) echo $virtue_premium['seo_sitedescription'];
else bloginfo('description'); ?>" />
<?php } else { ?>
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php }?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" type="image/x-icon" href="<?php global $virtue_premium; if(isset($virtue_premium['virtue_custom_favicon']['url'])) echo $virtue_premium['virtue_custom_favicon']['url']; ?>" />

thanks in advance, Lee

  • The forum ‘Virtue Theme’ is closed to new topics and replies.