Closed ethicapress closed 11 years ago
+1
We can add code like this on common/head
?php if(Params::getParam('subdomain')==1) { ?>
title><?php echo osc_user_name(); ?> - <?php osc_subdomain_host(); ?></title>
meta name="title" content="Toko online - <?php echo osc_user_name(); ?> - <?php osc_subdomain_host(); ?>" />
meta name="description" content="<?php echo osc_user_info(); ?>"/>
?php } else if (Params::getParam('page')=='item') { ?>
title><?php echo osc_item_title(); ?> </title>
meta name="title" content="<?php echo osc_item_title(); ?>" />
meta name="description" content="<?php echo osc_item_city().' - '.osc_item_category().' - '.osc_item_title();?>"/>
?php } else { ?>
title><?php echo meta_title() ; ?></title>
meta name="title" content="<?php echo osc_esc_html(meta_title()); ?>" />
?php if( meta_description() != '' ) { ?>
meta name="description" content="<?php echo osc_esc_html(meta_description()); ?>" />
?php } ?>
?php } ?>
(i use username as subdomian)
This issue has been moved to the theme repository : https://github.com/osclass/osclass-themes/issues/47
When you choose subdomains as regions, the meta title and description still display the main home page meta tags. Not SEO friendly at all.