Note though that unless your site is a well known brand, it's not a big benefit to do this in terms of seo. You would be better off using a short keyword phrase instead of your site name.
Running Opencart v2.2 with multi-stores from http://www.labeshops.com which has links to all my stores.
sorry.labeshops wrote:That should be config, not congig
Yes. Then you might need SEO module.Note though that unless your site is a well known brand, it's not a big benefit to do this in terms of seo. You would be better off using a short keyword phrase instead of your site name.
Parse error: syntax error, unexpected '/' in /home6/animeth1/public_html/catalog/view/theme/default/template/common/header.tpl on line 5
Did i do something wrong?
solved, $this->document->setTitle('your web name - ' . $category_info['name']);sinners wrote: ↑Thu Jul 05, 2018 5:08 amHi, i'v tried a few ways on my Version 22.214.171.124 , nothing works to get my domain name in the title on every page, only home page, all other pages comes up as the Product Name, wanted to get domain name after each cat and item, any help would be most appreciated. Thanks.
This puts the web name first, does anyone know how to have site name after.
(it might look a little different, depending on the Theme used) to something, like shown here:
Code: Select all
<head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- <title><?php echo $title; ?></title> HIDE, like shown, or REMOVE Line in full --> <!-- $separator=" | velomech.ch | "; CHANGE Site-URL+ Separator Character --> <!-- Start Code --> <title><?php $separator=" | velomech.ch | "; $store_name=$this->config->get('config_title'); if(trim($store_name)!=trim($title)) echo $title.$separator.$store_name; else echo $title; ?></title> <!-- End of Code --> <base href="<?php echo $base; ?>" />
based on this Extension:
https://www.opencart.com/index.php?rout ... n_id=22099
Just be aware, that any VqMod/OcMod, eventually ever looking for an Anchor/Tag like:
<title><?php echo $title; ?></title> in a theme header.tpl File,
would no longer find it, and so no longer function, without beeing rewritten as well!
PS: And be aware of Title max-character Value Recommendations.
siteurl_in_page_titles.jpg (66.59 KiB) Viewed 286 times
For Sale: Turnkey URLs with Opencart installed!
Latest Opencart LIGHT + V-Pro Test Site: http://www.hitline.info
Attacker IP Ranges are denied from further accessing my Sites.
For more Information, please contact me at: email@example.com
635 + free Mod-Repositories - from OC v.1.5.x up
on the largest Github Opencart Site: https://github.com/IP-CAM
Users browsing this forum: No registered users and 50 guests