Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to edit a meta robots tag in Magento?
Old 05-12-2011, 06:48 AM How to edit a meta robots tag in Magento?
Junior Talker

Posts: 1
Trades: 0
Hi there,

I am struggling editing a meta robots tag (with noindex, follow values) for SEO purposes in a single page in Magento.

The page is not a product page is a review one, so I don't know really where to start.


Thank you
Seonsmart is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-25-2011, 01:41 AM Re: How to edit a meta robots tag in Magento?
Average Talker

Posts: 24
Trades: 0
<meta name="robots" content="NOINDEX,FOLLOW">

You are struggling with this.

You can select NOINDEX/INDEX,FOLLOW/NOFOLLOW on the admin section of each page
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
lubasha123 is offline
Reply With Quote
View Public Profile Visit lubasha123's homepage!
 
Old 05-25-2011, 08:08 AM Re: How to edit a meta robots tag in Magento?
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
Quote:
Originally Posted by Seonsmart View Post
Hi there,

I am struggling editing a meta robots tag (with noindex, follow values) for SEO purposes in a single page in Magento.

The page is not a product page is a review one, so I don't know really where to start.

Thank you
In the backend of Magento, in the CMS section where you add the pages, there should be meta data fields in there... I can't remember off the top of my head if you can put a robots attribute in there...

The other alternative is to put something into the page templates themselves.

You're looking to edit a .phtml file within your template which should reside here:

Code:
install-folder/app/design/frontend/default/template-name/template/page/
(where template-name is changed to the actual name of the theme you're using)

So if your page is a 2 column layout, put your new meta tag in the file 2columns-left.phtml.

If you only want to apply this to 1 page, but have multiple pages running off that .phtml file, then make a new one and choose that in the Magento CMS. For example, you could make a new .phtml file:

Code:
2columns-left-no-robots.phtml
And just use that as the page template for that particular page.

Hope this helped, I know just how confusing the Magento system can be!

Good luck!
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Old 05-27-2011, 07:24 AM Re: How to edit a meta robots tag in Magento?
Average Talker

Posts: 18
Trades: 0
you can change with

<reference name="head">
<action method="setRobots"><value>NOINDEX, NOFOLLOW</value><name>robots</name></action>
</reference>

This XML could be used in any of layout XML files as well as any CMS Page’s Layout Update XML Field (as shown above). In summary, the code calls the setRobots method on the head block. Using the action XML tag it is possible to call any publically available function on the block being referenced.
techforums123 is offline
Reply With Quote
View Public Profile Visit techforums123's homepage!
 
Old 11-16-2011, 12:43 AM Re: How to edit a meta robots tag in Magento?
Banned

Posts: 27
Trades: 0
It is recommended not to use the Meta Robots tag, though, as search engines often ignore it. If you need to control the search engine robots, use a robots.txt file or modify your htaccess file, instead. Many people are concerned that if a bot comes to their site through a subpage and not their homepage, the robots.txt file will not be read, but this is not true. The robots.txt is read each time the bot comes to a new domain. You can verify this through your web logs.
Cashan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to edit a meta robots tag in Magento?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38857 seconds with 12 queries