Author Topic: Change Meta Title of Products and Categories  (Read 1063 times)

mediakrt

  • Beginner
  • *
  • Posts: 6
  • A beginner
Change Meta Title of Products and Categories
« on: May 17, 2017, 11:51:13 am »
I need to improve my metatitles. On my site the "normal" pages create a Meta-Title which containts the name of the website from the joomla core configuration ("Postname - Pagename"). The virtuemart products and category pages are not containing the pagename they are just containing the category name or on the product pages "Category Name - : Product Name" which is a total disaster. First i need to add the Page Name to the Meta Titles and second i need to remove the category title in the products meta-title. I cant find an option in the virtuemart configuration to change the meta titles. So where can i do this?

Best regards and thank you very much

I use Joomla 3.7.0 and VirtueMart 3.2.2.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2628
  • VirtueMart Version: 3.2.5
Re: Change Meta Title of Products and Categories
« Reply #1 on: May 17, 2017, 13:17:41 pm »
You can add the meta data in  VirtueMart administrator

Category
in the meta information block
 
and

Products
under the product description tab

regards
A

Joomla 3.8.2
php 5.6 + php 7

mediakrt

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Change Meta Title of Products and Categories
« Reply #2 on: May 18, 2017, 16:11:10 pm »
Thanks for your answer but this is not what i asked. I need to change the auto-generated meta-title structure. I dont want to add the site title to all my 2124 products manually.

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 834
  • VirtueMart Version: VM3 on J3
Re: Change Meta Title of Products and Categories
« Reply #3 on: May 18, 2017, 16:40:59 pm »
look here:
components/com_virtuemart/views/productdetails/view.html.php around line 244-250

you can use something like this in an template override for
components/com_virtuemart/views/productdetails/tmpl/default.php

Code: [Select]
$document = JFactory::getDocument();
$document->setTitle("This is my page title");




jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3186
  • using Piwik instead of Google Analytics
Re: Change Meta Title of Products and Categories
« Reply #4 on: May 19, 2017, 00:11:29 am »
@mediakrt
I think you are mixing up the title tag and the meta title tag. See here:
http://forum.virtuemart.net/index.php?topic=96085.msg316820#msg31682
Google ignores the meta title tag. See here: https://support.google.com/webmasters/answer/79812?hl=en
If you didn't read Google's advice about title tags, see here (page 4 and 5): https://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf


Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

mediakrt

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Change Meta Title of Products and Categories
« Reply #5 on: May 22, 2017, 09:48:51 am »
@jjk: I dont mix up anything. Where did you ghet that information that google ignores the meta title tag? I think you mix up the meta title and the meta description tag. The meta title tag is still a very important tag in terms of seo, i hope you dont give this advice to any clients....

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26368
  • Always on vacation
    • Jenkin Hill Internet
Re: Change Meta Title of Products and Categories
« Reply #6 on: May 22, 2017, 10:31:12 am »
Meta title is significantly less important than it used to be. Unfortunately some people still confuse the <title> tag with <meta name="title"  .... > and Joomla used to include both in page headers.

https://www.hobo-web.co.uk/definitive-guide-to-using-important-meta-tags/
https://www.searchenginejournal.com/important-tags-2016-seo/156440/
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.6 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.6 on J!4alpha1

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3186
  • using Piwik instead of Google Analytics
Re: Change Meta Title of Products and Categories
« Reply #7 on: May 22, 2017, 12:03:21 pm »
@jjk: ...The meta title tag is still a very important tag in terms of seo, i hope you dont give this advice to any clients....

Believe me - you are wrong  ;)

This is the page/browser title which is important for the search engines:
Code: [Select]
<title>CategoryName : ProductName</title>
This is a 'meta title', which is pretty much useless for SEO. Google clearly states that it ignores it. (Read the second link in my previous reply carefully)
Code: [Select]
<meta name="title" content="CategoryName : ProductName" />

If you want to include a brand in all your page titles which is different from your domain name (Google displays your domain in the serps as part of the url anyway) , an easy method would be to replace the default VM suffix '-detail' with your brand in the VM configuration.



Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations