Skip to main content
42 votes
Accepted

What are the possible ways to page title in magento 2?

You can set title using below code: <referenceBlock name="page.main.title"> <action method="setPageTitle"> <argument translate="true" name=&...
Prashant Valanda's user avatar
36 votes

How to remove page title (h1) from home page, cms_index_index.xml not working

have you tried in cms_index_index.xml something like this? <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ -->...
Simone Marcato's user avatar
25 votes
Accepted

Change page title in controler or block

You can do it in different ways - it's enough to use only one: 1. From controller /** @var \Magento\Framework\View\Result\Page $resultPage */ $resultPage = $this->resultPageFactory->create(); $...
Sohel Rana's user avatar
  • 35.9k
11 votes

How to remove page title (h1) from home page, cms_index_index.xml not working

For all other Pages create cms_page_view.xml instead cms_index_index.xml /app/design/frontend/<vendor>/<theme>/Magento_Cms/layout/cms_page_view.xml And add same code you have used for ...
Waldemar's user avatar
  • 130
10 votes
Accepted

Magento 2: Change page titles

Magento 2.2 For Magento 2.2 this is now in Content -> Design -> Configuration Then click edit on either website, store or view. Finally, go to the html head section and fill out Prefix or Suffix. ...
Raphael at Digital Pianism's user avatar
7 votes
Accepted

Magento 2 : How to change customer account page title

You can also use this below code. customer_account_index.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:...
Chirag Prajapati's user avatar
6 votes

What are the possible ways to page title in magento 2?

Put this function in Block page of that Module public function _prepareLayout() { $this->pageConfig->getTitle()->set(__('Your Page Title')); return parent::_prepareLayout(); ...
Lokesh Das's user avatar
5 votes

Magento 2 - Incorrect title showing for some pages

Solved it. The problem was that I had a layout using Magento\Customer\Block\Form\Login, like this: <block class="Magento\Customer\Block\Form\Login" name="login.sidebar" template="form/...
Thomas Domingues's user avatar
5 votes

Magento 2 : How to change customer account page title

In this case, we can use layout_generate_blocks_before On this fire an observer which change title and set Current customer name in place of My Dashboard Observer: <?php namespace Devamitbera\...
Amit Bera's user avatar
  • 77.6k
5 votes

How to remove page title (h1) from home page, cms_index_index.xml not working

Login to Admin Goto Content->Element: pages-> Edit HomePage Select Content Remove Contet Heading and Save.
Ayaz's user avatar
  • 357
3 votes
Accepted

Admin Custom Page : Cannot Set Page Title in Magento 2

Try prepend(__("My Title")); public function execute() { $resultPage = $this->resultPageFactory->create(); $resultPage->getConfig()->getTitle()->prepend(__("My Title")); ...
Prince Patel's user avatar
  • 22.8k
3 votes
Accepted

Magento 2 - How to replace a char on item title

You can add your code here: /app/code/Custom/module/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
Ravi Soni's user avatar
  • 1,809
2 votes

What are the possible ways to page title in magento 2?

Also, check if your page title is being set by multiple modules. Depending on what you have installed, and the sequence, the page title can wind up being reset by something else after trying to set it....
Jason Horvath's user avatar
2 votes

Magento 2 moving cart page main title to columns section is not working

I hope this is useful for you, Add this code: app\design\frontend\mypackage\mytheme\Magento_Checkout\layout\checkout_cart_index.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Rajkumar .E's user avatar
  • 3,570
2 votes

Magento 2 moving cart page main title to columns section is not working

I have tried this in LUMA Theme. \vendor\magento\theme-frontend luma\Magento_Checkout\layout\checkout_cart_index.xml After the <body> tag, i placed it <move element="page.main.title" ...
Krishna ijjada's user avatar
2 votes

Adding suffix to head title on all pages for magento 1

To add suffix to your store title tags go to System > Configuration > Design > Html Head.Here you can see "Title Suffix" you can give your title suffix here. Which will add your given suffix ...
Pradeep Sanku's user avatar
2 votes

Remove Title suffix from cms pages

IN file: app/design/frontend/{theme}/template/page/html/head.phtml search: <title><?php echo $this->getTitle() ?></title> In place of it put below code and test: <?php ...
Chirag Rajput's user avatar
2 votes

Trouble changing Meta TItle of CMS Page

I figured it out. I had to change out the page title in the html template from <title><?php echo $this->getTitle() ?></title> to <title><?php echo ($this->...
YeahMKD's user avatar
  • 121
2 votes

How to remove page title (h1) from home page, cms_index_index.xml not working

Check cms home page. content-> pages-> home page than open that page and check that content heading is blank or not. If it is not than remove heading. Now its removed form your front page
shubham mittal's user avatar
2 votes

Magento 2 : How to change customer account page title

You need to override Magento/Customer/Controller/Account/Index.php It should be like, <?php /** * * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ ...
Bilal Usean's user avatar
2 votes

magento 2 change page title on registration page

The fact that you're calling the following code after your modification will overwrite your change: return parent::_prepareLayout(); As it will basically do the following: if(my condition){ ...
Raphael at Digital Pianism's user avatar
2 votes
Accepted

how to change search result page title dynamically

Dynamic title provided by Block/Result.php in catalogsearch module. So you have to override the Block/Result.php into your local folder. There you can change the title as per your requirement. app/...
Srihari's user avatar
  • 422
2 votes

Magento 2 : Set My Account Page Title with customer name

You can do this by pluginize exceute method. Try following way: Create plugin[Vendor/Module/etc/frontend/di.xml] <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Sohel Rana's user avatar
  • 35.9k
2 votes

Page title display different

Solved it. The problem was when we use below block in any cms block or page or template file Magento\Customer\Block\Form\Login then above issue arise for that specific pages. I saw that Magento\...
Devidas's user avatar
  • 3,358
2 votes

How to change Customer Login Title in magento 2?

Create en_Us.csv file to change title of customer login For theme level, app/design/frontend/{Packagename}/{themename}/i18n/en_US.csv For module level, app/code/{Package}/{Module}/i18n/en_US.csv ...
Rakesh Jesadiya's user avatar
2 votes
Accepted

change title of create new customer account

Create a custom module In custom module create a layout file name with customer_account_create.xml at app/code/VendorName/ModuleName/view/frontend/layout/customer_account_create.xml add below code ...
Prashant Valanda's user avatar
2 votes

I need to remove page title of home page in magento 2

-------- Magento 2 - remove home page title ----------- You can add reference block in your cms_index_index.xml <referenceBlock name="page.main.title" display="false"/> Using "true & ...
Ajithkumar's user avatar
2 votes
Accepted

How to change home page meta title in magento 2.3?

Open your Magento admin panel and go to: Content > Pages > Find your home page See the screenshot below:- (If you can't find which CMS Page your homepage is set as, you can confirm this by ...
Mohit Patel's user avatar
  • 3,913
1 vote

How can I change H1 title in categories?

I assume you are using Magento 1. This solution tested on Magento 1.9.2.3. Here is what you can try: 1 - In category Custom Layout Update: <reference name="category.products"> <...
Konstantin Gerasimov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible