Overriding template for a specific language
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
2
down vote
favorite
I would like to override a template but only for a specific language (`ar_SA')
The template I want to override is:Magento_Catalog/templates/product/list.phtml
I have tried putting it in the following locations but it didn't work for any of them:
<VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml
<VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
Any other suggestions or possibilities?
(My Magento version is 2.2.6)
magento2 theme template overrides overriding
add a comment |Â
up vote
2
down vote
favorite
I would like to override a template but only for a specific language (`ar_SA')
The template I want to override is:Magento_Catalog/templates/product/list.phtml
I have tried putting it in the following locations but it didn't work for any of them:
<VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml
<VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
Any other suggestions or possibilities?
(My Magento version is 2.2.6)
magento2 theme template overrides overriding
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I would like to override a template but only for a specific language (`ar_SA')
The template I want to override is:Magento_Catalog/templates/product/list.phtml
I have tried putting it in the following locations but it didn't work for any of them:
<VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml
<VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
Any other suggestions or possibilities?
(My Magento version is 2.2.6)
magento2 theme template overrides overriding
I would like to override a template but only for a specific language (`ar_SA')
The template I want to override is:Magento_Catalog/templates/product/list.phtml
I have tried putting it in the following locations but it didn't work for any of them:
<VENDOR>/<THEME NAME>/i18n/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/templates/product/list.phtml
<VENDOR>/<THEME NAME>/Magento_Catalog/i18n/ar_SA/templates/product/list.phtml
<VENDOR>/<THEME NAME>/web/i18n/ar_SA/Magento_Catalog/templates/product/list.phtml
Any other suggestions or possibilities?
(My Magento version is 2.2.6)
magento2 theme template overrides overriding
magento2 theme template overrides overriding
asked 1 hour ago
Hassan Al-Jeshi
1588
1588
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.
See dev docs on Theme Inheritance.
Change theme for your ar_SA
store view to the child theme you created.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.
See dev docs on Theme Inheritance.
Change theme for your ar_SA
store view to the child theme you created.
add a comment |Â
up vote
2
down vote
Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.
See dev docs on Theme Inheritance.
Change theme for your ar_SA
store view to the child theme you created.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.
See dev docs on Theme Inheritance.
Change theme for your ar_SA
store view to the child theme you created.
Create a child theme which inherits from your main theme. Add the template you want to override to your child theme.
See dev docs on Theme Inheritance.
Change theme for your ar_SA
store view to the child theme you created.
answered 1 hour ago
oscarpas
505138
505138
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f243849%2foverriding-template-for-a-specific-language%23new-answer', 'question_page');
);
Post as a guest
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
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
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