Questions tagged [page-title]
The page-title tag has no usage guidance.
83 questions
15
votes
7
answers
34k
views
How to remove page title (h1) from home page, cms_index_index.xml not working
I´m trying to remove the home page main title on my custom theme (wich is running on top of luma theme).
I´ve tried to add the usual tag to remove, as follows (and as it was already answered here), ...
12
votes
1
answer
18k
views
Change page title in controler or block
I have found two ways for changing page title and I don't know which one I should use.
1. Override prepareLayout() in block
protected function _prepareLayout()
{
$this->pageConfig->...
10
votes
4
answers
47k
views
What are the possible ways to page title in magento 2?
I want to modify the page title of the customer login page.
What is the simple way to modify the page title?
/**
* @return $this
*/
protected function _prepareLayout()
{
$this->pageConfig->...
10
votes
1
answer
11k
views
Magento 2: Change page titles
How do I change the page titles in the head section for each page? I would like to show: 'page title | site name'
5
votes
1
answer
7k
views
Change page title and meta description in .phtml file
Is there a way to change the page title and meta description from a .pthml file ?
I know this is stuff regarding the header files but is there any way in magento to force to change the page title and ...
4
votes
4
answers
12k
views
How can i remove category title (H1) from a specific page of catalog?
How can i remove category title (H1) from a specific page of catalog?
I deleted breadcrumbs using a code xml:
<remove name="breadcrumbs"/>
Is it possible to replicate this with H1? Thanks!
4
votes
2
answers
891
views
Remove Title suffix from Product Page only
How do i remove title suffix only from product page. My current Page title is like [Product Name] - [Website Address] here i want to remove website address only from product page which means it should ...
3
votes
1
answer
740
views
Change dynamic title of review page
I want to change the title of the review page.
Currently it is display as "Productname | Websitename".
But I want to change it in "Reviews of Productname | Websitename"
How can I achieve that?
...
3
votes
1
answer
2k
views
Magento 2 - Incorrect title showing for some pages
Some of the pages show incorrect title and heading : it is showing "Customer Login" as page heading and title for Contact page and Advanced Search page.
The point is, I included customer login form ...
3
votes
1
answer
343
views
Page title display different
When searching the products displayed page title is different in magento2. Before login display customer login title and after login shown correct title.Please help me any one.
3
votes
1
answer
3k
views
Magento: Category Name vs Page Title Name
How can a page title name (not meta) be different from the Category "Name"?
For example:
Main Category 1: ABC
Sub-Category (under ABC): DEF
On the navigation menu, the main category is displayed ...
3
votes
1
answer
1k
views
Get page title and link of parent CMS page in CMS Hierarchy
Is there a good method for retrieving the page title and url of the parent CMS page when using Magento's CMS Hierarchy?
Example Structure:
About Us
Culture
Contact
I need to be able to get the ...
3
votes
3
answers
3k
views
How can we get page title back in magento 2
I had tried to remove title from cms pages so used referenceBlock name="page.main.titlte" remove="true" on cms_index_index.xml but it removed title from product and category pages too.
How can i get ...
3
votes
3
answers
3k
views
Get Widget Instance Title
I'm creating a template for a widget and would like to echo the widget title in my PHP code. What is the proper way of doing that?
The following does not work:
<?php echo $this->getTitle() ?&...
3
votes
1
answer
2k
views
how to hide the page-title / category-title [duplicate]
is there a way to hide the h1 page-title / category-title which shows on most pages? However, I want to only remove it on some pages.. therefore, a solution using the 'Custom Layout Update' would be ...
2
votes
2
answers
12k
views
How to change page title in Magento "Magento Commerce"?
When I click on a link send to a friend and want to send the link to some of my friend I have the title Magento Commerce displayed in my title tag.
The question is: how to change it to something ...
2
votes
1
answer
377
views
Append to all page titles
I have been asked to append the website name on the end of all page titles therefore my question is what is the best way to dynamically add "- Example.com" to the end of all titles on all pages ...
2
votes
2
answers
6k
views
How to change home page meta title in magento 2.3?
How to change meta title in magento2.3? I am not able to find the title of the home page.
2
votes
1
answer
624
views
Magento 2 - How to replace a char on item title
I have succesfully used this trick to replace dash char "-" with "br" on CATEGORY VIEW:
<?php echo str_replace(' - ', '<br />', $_helper->productAttribute($_product, $_product->getName(...
2
votes
2
answers
2k
views
How can i add the Manufacturer Name in Product title?
I want to add the Manufacturer into the Product Title like:
"Nike" Shoe XYZ or "Apple" iPhone 5s
The manufacturer Attribute is already set in Backend. But i want to import our 15k Products via csv ...
2
votes
2
answers
3k
views
How to change the title of contacts page in coding in magento?
I have done a website in magento. In that website, I have contact page. I have inserted the keywords,description in the contact page But when I am giving the title, it is not showing in the website. ...
2
votes
2
answers
3k
views
Set page title after loadLayout and renderLayout
I need to set some tags(title, description) after i render a layout.
I know how to set the titles via layout files:
<reference name="head">
<action method="setTitle" translate="title">&...
2
votes
1
answer
1k
views
How can you add attributes to title tags?
Is there a way to have the manufacturer or color attribute when you select these attributes from our sidebar? So it would be like, you clicked "Sony" and are now on a Sony page of products. So the ...
2
votes
1
answer
1k
views
Magento 2 : Title Prefex and Suffix Doesn't Works
I have 2 websites with Magento 2.2.2 with luma theme.
For one prefix and suffix works fine. For other, no prefix and suffix are rendering.
Who can explain me exactly where part of the code is used to ...
2
votes
1
answer
1k
views
Set page title without using deprecated <action>
Every answer I can find for setting the page title (H1 tag not the tab title) uses this format:
<action method="setPageTitle">
<argument translate="true" name="title" xsi:type="string"&...
2
votes
0
answers
436
views
Product and Category name not showing as page title
My page title only show the suffix page title, i need to uncheck the page title in category page and add the page title manually so the page title will show up and for product i need to fill the meta ...
2
votes
1
answer
682
views
How to format the page title of a product view page?
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 ...
2
votes
0
answers
137
views
Product pages all have meta titles from 2 different pages combined
Running magento 1.8 with a smartwave porto theme.
We cannot figure out where our store meta title & description are coming from...they're not coming from the meta data area on the homepage & ...
1
vote
4
answers
10k
views
Magento 2 : How to change customer account page title
Hi, I have created custom theme. I want change account page title from "My Dashboard" to loggedin customer name. How I can do this.
Although I have found file customer_account_index.xml that is ...
1
vote
4
answers
499
views
Magento why only title prefix show on title area
My projects default page title fixed. Suppose I go category page that's not show category name in title that showing default title which from core_config_data table path design/head/default_title.
...
1
vote
2
answers
4k
views
Magento 2 moving cart page main title to columns section is not working
I've to move page title "Shopping Cart" into columns container/div.
So to do so in checkout_cart_index.xml file I've made changes.
app\design\frontend\mypackage\mytheme\Magento_Checkout\layout\...
1
vote
1
answer
578
views
Admin Custom Page : Cannot Set Page Title in Magento 2
This is my etc/adminhtml/menu.xml
<add id="My_Module::first" title="I Am Parent" module="My_Module" sortOrder="1" parent="My_Module::parent" resource="My_Module::first" />
<add id="...
1
vote
2
answers
3k
views
Move CMS page title outside of normal layout
I have a CMS page with the 1-column layout. I'd like to move the page title outside the main container of the page. The current setup is as follows:
<div class="main-container col1-layout">
...
1
vote
2
answers
4k
views
Get page title without prefix or suffix
I want text in <h1> tag to match page title, but without store prefix.
I'm getting page title like so:
<h1>
<?php echo $this->getLayout()->getBlock('head')->getTitle(); ?&...
1
vote
1
answer
2k
views
change title of create new customer account
I need to change the title of my registration form. ex. apply for customer account
How can I change the title?
1
vote
2
answers
1k
views
Magento 2 : Set My Account Page Title with customer name
I want to change page title of My Account Page only like below:
welcome back, Customer.firstname()
How I can change my account page title only with customer firstname?
1
vote
2
answers
2k
views
Adding suffix to head title on all pages for magento 1
What's the best way to add some text (e.g. [staging], [dev], ...) to the end of the header title on all pages? I'm thinking of some "layout" event to listen to where I can:
$observer->getLayout()-&...
1
vote
1
answer
718
views
Remove Title suffix from cms pages
I have title suffix in magento 1.7 system configuration.
I would like to remove title suffix from all cms pages or from cms pages besides home page.
How to do this?
1
vote
1
answer
70
views
When remove Breadcrumb from site it remove Page Title on catalog pages
I have tried to remove breadcrumb from the whole site using below code.
<reference name="root">
<remove name="breadcrumbs"/>
</reference>
Or just
<remove name="breadcrumbs"...
1
vote
1
answer
404
views
route shows user login page title
In one Magento 2.2.6 instance something very odd occurs: the meta page title shows
<title>Customer Login</title>
and the page title in the content also shows Customer Login - even though ...
1
vote
2
answers
2k
views
Magento 2: How to move breadcrumbs and sku before product title?
I am trying to move breadcrumb and SKU to show above the product title using xml.
Like
<move element="breadcrumbs" destination="product.info.main" before="page.title.wrapper" />
But ...
1
vote
1
answer
181
views
Changing/adding class to registration form layout
I have been asked by a marketing rep to try to reduce the size of the title area on the registration form due to a detected problem on some browsers where the theme's modal version won't properly ...
1
vote
1
answer
487
views
Adding a custom register page, changes the page title - Magento 2
I am adding a custom register pop-up to all pages by adding the following block in the default.xml file in my custom theme:
<block class="Magento\Customer\Block\Form\Register" name="...
1
vote
1
answer
3k
views
How can I change H1 title in categories?
I need to change the h1 title using Custom Layout Update field in the category edit view
How can I do this? Change many categories h1 titles without change the category name?
1
vote
2
answers
2k
views
How to change page title of a category programmatically?
I am using magento 1.7 and i want to display the category title(meta title) as in the format of [Sub-Sub-Category] - [Sub-Categories] | main category for all sub-sub-categories.
1
vote
3
answers
757
views
How to change admin page header title?
How I can change page header title from controller in admin page?
In the picture I want to change Dashboard to something else. I tried below code in execute method of the controller
$pageFactory = $...
1
vote
0
answers
27
views
disable suffix from home page only
Essentially, I have set the store up so the suffix for each page title is "- CompanyName" but I would like to know how to create an exception for this for the home page.
Thanks
1
vote
1
answer
124
views
Various pages displaying "Customer Login" instead of their proper page title as defined in the xml page
My Contact Us page, Password Reset, Forgotten password and possibly a few other pages are having their page title overriten to say "Customer Login". I have a feeling that the culprit is located here,.....
1
vote
0
answers
69
views
Remove Categories from Product Page Title
When navigating to a product in Magento 2, through multiple categories - i.e. site.com/tops/bras - if there is no manually set SEO title, it adds Tops - Bras to the product page title, what would be ...
1
vote
1
answer
2k
views
Magento 2 - Page title prefix and suffix not rendering
I am using Magento version 2.1.4
I added page title prefix and suffix (both just for test) in Admin Panel -> Content -> Configuration -> HTML Head input fields but none of them are actually renderen ...