Hi
with a fresh install of OpenCart v1.2.3,I download zip-file:"meta_data_v1.3" and upload "included" folders and files - all existing files will be overwritten.
Add meta Description&keyword at Admin > Configuration > Setting and select the Meta Data tab,
The problem is:
I can not see any meta Description&keyword at the <head> part with IE7.0>view>source file
Here is a quick and partial solution that will add titles, keywords and descriptions in the head meta tags. It is only a partial solution because all pages will have the same keywords and meta description, which is not great SEO. However, the page titles will still unique.
1)
open catalog/view/theme/template/common/layout.tpl
replace:
<title><?php echo $title; ?></title>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
with:
<?php
if ( $title == "xyz" ) {
echo '<title>Titanium Widgets Inc</title>';
}else {
echo '<title>'.$title.'</title>';
}
?>
<meta name="Keywords" content="big blue widgets, cheap widgets, titanium widgets">
<meta name="Description" content="Titanium Widgets inc has the largest selection of cheap blue titanium widgets in the UK">
2)
open catalog/language/english/common/home.php
make the value for ['title'] xyz like so: (so that the if/else statement above is true)
$_['title'] = 'xyz';
The home page title will be 'Titanium Widgets Inc' and the page titles will be whatever their head_title is in their matching language files.
1)
open catalog/view/theme/template/common/layout.tpl
replace:
<title><?php echo $title; ?></title>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
with:
<?php
if ( $title == "xyz" ) {
echo '<title>Titanium Widgets Inc</title>';
}else {
echo '<title>'.$title.'</title>';
}
?>
<meta name="Keywords" content="big blue widgets, cheap widgets, titanium widgets">
<meta name="Description" content="Titanium Widgets inc has the largest selection of cheap blue titanium widgets in the UK">
2)
open catalog/language/english/common/home.php
make the value for ['title'] xyz like so: (so that the if/else statement above is true)
$_['title'] = 'xyz';
The home page title will be 'Titanium Widgets Inc' and the page titles will be whatever their head_title is in their matching language files.
Who is online
Users browsing this forum: No registered users and 7 guests