How to format the page title of a product view page?Magento duplicate meta tags in google webmasterSEO: Product Meta Title, Keywords and DescriptionRewriting META logic for product view page - need assistanceplugin creare seo question attribute default title productChanging Magento Product Review Page TitlesMagento: Category Name vs Page Title NameEdit default page title for category programaticallyMagento 2 - Page title prefix and suffix not renderingProduct and Category name not showing as page titleWill changing the category name affect SEO?
Pre-mixing cryogenic fuels and using only one fuel tank
Why does a simple loop result in ASYNC_NETWORK_IO waits?
How to hide some fields of struct in C?
Redundant comparison & "if" before assignment
Can I still be respawned if I die by falling off the map?
What is the evidence for the "tyranny of the majority problem" in a direct democracy context?
Why does the Sun have different day lengths, but not the gas giants?
What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?
Is there an injective, monotonically increasing, strictly concave function from the reals, to the reals?
Does the UK parliament need to pass secondary legislation to accept the Article 50 extension
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Why is this estimator biased?
What should you do when eye contact makes your subordinate uncomfortable?
Why should universal income be universal?
How to say when an application is taking the half of your screen on a computer
How do apertures which seem too large to physically fit work?
How can mimic phobia be cured?
Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?
Why did the EU agree to delay the Brexit deadline?
Temporarily disable WLAN internet access for children, but allow it for adults
How to cover method return statement in Apex Class?
What is Cash Advance APR?
Can disgust be a key component of horror?
System.QueryException unexpected token
How to format the page title of a product view page?
Magento duplicate meta tags in google webmasterSEO: Product Meta Title, Keywords and DescriptionRewriting META logic for product view page - need assistanceplugin creare seo question attribute default title productChanging Magento Product Review Page TitlesMagento: Category Name vs Page Title NameEdit default page title for category programaticallyMagento 2 - Page title prefix and suffix not renderingProduct and Category name not showing as page titleWill changing the category name affect SEO?
Currently I'm doing some work on a Magento shop (1.8) and one of the problems the site has is that the SEO and page titles are very poor. So far I've managed to change all of the page titles and meta descriptions for the categories and now I have to sort out the page titles for the product pages.
At the moment, the page title is written like this:
Product NameCategoryCategoryCategory
For a real world example:
Reversible GiletWaistcoats & Gilets For MenClothingMen
Basically there is no space between the product title and the hierarchical category names, which is obviously not desirable.
What I want to do is to just display the product name and the category name that the product is under. So in this example the page title would be:
Reversible Gilet - Waistcoats & Gilets For Men
How can I achieve this?
product-view seo page-title
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Currently I'm doing some work on a Magento shop (1.8) and one of the problems the site has is that the SEO and page titles are very poor. So far I've managed to change all of the page titles and meta descriptions for the categories and now I have to sort out the page titles for the product pages.
At the moment, the page title is written like this:
Product NameCategoryCategoryCategory
For a real world example:
Reversible GiletWaistcoats & Gilets For MenClothingMen
Basically there is no space between the product title and the hierarchical category names, which is obviously not desirable.
What I want to do is to just display the product name and the category name that the product is under. So in this example the page title would be:
Reversible Gilet - Waistcoats & Gilets For Men
How can I achieve this?
product-view seo page-title
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
Currently I'm doing some work on a Magento shop (1.8) and one of the problems the site has is that the SEO and page titles are very poor. So far I've managed to change all of the page titles and meta descriptions for the categories and now I have to sort out the page titles for the product pages.
At the moment, the page title is written like this:
Product NameCategoryCategoryCategory
For a real world example:
Reversible GiletWaistcoats & Gilets For MenClothingMen
Basically there is no space between the product title and the hierarchical category names, which is obviously not desirable.
What I want to do is to just display the product name and the category name that the product is under. So in this example the page title would be:
Reversible Gilet - Waistcoats & Gilets For Men
How can I achieve this?
product-view seo page-title
Currently I'm doing some work on a Magento shop (1.8) and one of the problems the site has is that the SEO and page titles are very poor. So far I've managed to change all of the page titles and meta descriptions for the categories and now I have to sort out the page titles for the product pages.
At the moment, the page title is written like this:
Product NameCategoryCategoryCategory
For a real world example:
Reversible GiletWaistcoats & Gilets For MenClothingMen
Basically there is no space between the product title and the hierarchical category names, which is obviously not desirable.
What I want to do is to just display the product name and the category name that the product is under. So in this example the page title would be:
Reversible Gilet - Waistcoats & Gilets For Men
How can I achieve this?
product-view seo page-title
product-view seo page-title
edited Dec 6 '18 at 8:15
Murtuza Zabuawala
12.6k73362
12.6k73362
asked May 11 '16 at 7:03
mickburkejnrmickburkejnr
786
786
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
you have to rewrite this class to change on product detail page
Mage_Catalog_Block_Product_View
you can rewrite it with below example
in config.xml
<global>
<blocks>
<catalog>
<rewrite> <product_view>YourNameSpace_Catalog_Block_Product_View</product_view>
</rewrite>
</catalog>
</blocks>
</global>
override in file
class YourNameSpace_Catalog_Block_Product_View extends Mage_Catalog_Block_Product_View
{
protected function _prepareLayout()
$product = $this->getProduct();
$meta_description = $product->getMetaDescription();
// change your meta title here and assign to product
return parent::_prepareLayout();
hope this will sure help to you
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f114834%2fhow-to-format-the-page-title-of-a-product-view-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
you have to rewrite this class to change on product detail page
Mage_Catalog_Block_Product_View
you can rewrite it with below example
in config.xml
<global>
<blocks>
<catalog>
<rewrite> <product_view>YourNameSpace_Catalog_Block_Product_View</product_view>
</rewrite>
</catalog>
</blocks>
</global>
override in file
class YourNameSpace_Catalog_Block_Product_View extends Mage_Catalog_Block_Product_View
{
protected function _prepareLayout()
$product = $this->getProduct();
$meta_description = $product->getMetaDescription();
// change your meta title here and assign to product
return parent::_prepareLayout();
hope this will sure help to you
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
add a comment |
you have to rewrite this class to change on product detail page
Mage_Catalog_Block_Product_View
you can rewrite it with below example
in config.xml
<global>
<blocks>
<catalog>
<rewrite> <product_view>YourNameSpace_Catalog_Block_Product_View</product_view>
</rewrite>
</catalog>
</blocks>
</global>
override in file
class YourNameSpace_Catalog_Block_Product_View extends Mage_Catalog_Block_Product_View
{
protected function _prepareLayout()
$product = $this->getProduct();
$meta_description = $product->getMetaDescription();
// change your meta title here and assign to product
return parent::_prepareLayout();
hope this will sure help to you
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
add a comment |
you have to rewrite this class to change on product detail page
Mage_Catalog_Block_Product_View
you can rewrite it with below example
in config.xml
<global>
<blocks>
<catalog>
<rewrite> <product_view>YourNameSpace_Catalog_Block_Product_View</product_view>
</rewrite>
</catalog>
</blocks>
</global>
override in file
class YourNameSpace_Catalog_Block_Product_View extends Mage_Catalog_Block_Product_View
{
protected function _prepareLayout()
$product = $this->getProduct();
$meta_description = $product->getMetaDescription();
// change your meta title here and assign to product
return parent::_prepareLayout();
hope this will sure help to you
you have to rewrite this class to change on product detail page
Mage_Catalog_Block_Product_View
you can rewrite it with below example
in config.xml
<global>
<blocks>
<catalog>
<rewrite> <product_view>YourNameSpace_Catalog_Block_Product_View</product_view>
</rewrite>
</catalog>
</blocks>
</global>
override in file
class YourNameSpace_Catalog_Block_Product_View extends Mage_Catalog_Block_Product_View
{
protected function _prepareLayout()
$product = $this->getProduct();
$meta_description = $product->getMetaDescription();
// change your meta title here and assign to product
return parent::_prepareLayout();
hope this will sure help to you
answered May 11 '16 at 7:15
liyakatliyakat
3,61061933
3,61061933
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
add a comment |
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
I'll try this, but what file am I doing the override in?
– mickburkejnr
May 11 '16 at 7:23
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
look for detail thing inchoo.net/magento/…
– liyakat
May 11 '16 at 7:37
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f114834%2fhow-to-format-the-page-title-of-a-product-view-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown