Magento set custom page title and description for sitemap pages

Magento set custom page title and description for sitemap pages

September 21, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento set custom page title and description for sitemap pages

Customizing Page Title and Description for Magento Sitemap Pages

In this post, we’ll explore how to set custom page titles and meta descriptions for your Magento sitemap pages located at catalog/seo_sitemap/category/ and catalog/seo_sitemap/product/. While the process is similar to setting SEO details on other built-in pages like contacts, there are some key differences.

Understanding Magento Sitemap Layout

The sitemap layout in Magento is handled primarily by the layout XML files located under app/design/frontend/[theme]/layout/catalog/seo_sitemap. There are two main layouts:

  1. category.xml: Handles the category sitemap.
  2. product.xml: Handles the product sitemap.

Each of these files contains a <reference name="head"> section where you can add SEO-related actions like setTitle and setDescription.

Setting Custom Title and Description

To set custom titles and descriptions for your Magento sitemaps, you need to update the appropriate layout XML file. For example, let’s say you want to change the title of your category sitemap.

  1. Open app/design/frontend/[theme]/layout/catalog/seo_sitemap/category.xml.

  2. Within the <reference name="head"> section, add the setTitle and setDescription actions:

<reference name="head">
  <action method="setTitle"><title>My Custom Category Sitemap Title</title></action>
  <action method="setDescription"><description>This is my custom category sitemap description.</description></action>
</reference>

Replace the title and description content with your desired text.

  1. Save the file.

  2. To apply these changes, clear your Magento cache by running php bin/magento cache:flush from your terminal or use the Magento backend interface under System > Cache Management.

Best Practices for Customizing Sitemap SEO

Remember to follow some best practices when customizing sitemap SEO:

  • Be Descriptive: Use clear, accurate, and concise titles that describe what each page contains.
  • Use Keywords: Include relevant keywords in your titles where appropriate.
  • Keep Them Short: Avoid excessive length; keep titles under 60 characters if possible to avoid truncation in search results.
  • Make Them Unique: Each sitemap page should have a unique title and description.

Incorporating Custom Sitemaps with Laravel Company

At Laravel Company, we specialize in helping businesses optimize their e-commerce platforms, including Magento SEO. Our team can assist you with advanced customizations like these while ensuring your site maintains optimal performance.

Whether you need help with custom layout modifications or more complex Magento development projects, don’t hesitate to reach out. We’re here to make sure your online store is running at its best.

Conclusion

Customizing the page title and meta description for your Magento sitemap pages involves updating the appropriate layout XML files within the catalog/seo_sitemap directory. By following the steps outlined above, you can easily apply custom SEO details to these critical pages.

Remember that effective SEO isn’t just about keywords; it’s also about providing clear, relevant information to both users and search engines. With proper optimization of your sitemaps, you’ll see improved visibility and organic traffic from search engines like Google.

Don’t forget to check out our services at Laravel Company for expert Magento development and SEO assistance tailored to your business needs.

Catalog Themes Configuration SEO

Our network