add product title into product tabshow to call block in short description on product page?Show current product description in custom static blockProduct not returning it's short descriptionDuplicated Product Title and Short descriptionMove short description below page product detail title via XMLWhy does setting the template for the product description remove the entire product tabs?Move product info in details tabCall MagentoCatalogModelProduct::getData() returns nullMoving grouped product tableMagento 2.3.0 - Add custom block after product description tabs
Time travel from stationary position?
The hookrightarrow and its meaning
What did Alexander Pope mean by "Expletives their feeble Aid do join"?
How to make healing in an exploration game interesting
My adviser wants to be the first author
Are all passive ability checks floors for active ability checks?
What should tie a collection of short-stories together?
How to terminate ping <dest> &
Life insurance that covers only simultaneous/dual deaths
How to create the Curved texte?
Who is flying the vertibirds?
Happy pi day, everyone!
What are substitutions for coconut in curry?
Unexpected result from ArcLength
What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?
Python if-else code style for reduced code for rounding floats
compactness of a set where am I going wrong
Are there verbs that are neither telic, or atelic?
How to deal with a cynical class?
Why is the President allowed to veto a cancellation of emergency powers?
Brexit - No Deal Rejection
Are ETF trackers fundamentally better than individual stocks?
How to read the value of this capacitor?
Why do Australian milk farmers need to protest supermarkets' milk price?
add product title into product tabs
how to call block in short description on product page?Show current product description in custom static blockProduct not returning it's short descriptionDuplicated Product Title and Short descriptionMove short description below page product detail title via XMLWhy does setting the template for the product description remove the entire product tabs?Move product info in details tabCall MagentoCatalogModelProduct::getData() returns nullMoving grouped product tableMagento 2.3.0 - Add custom block after product description tabs
I am trying to add the product title and short description within the product tabs on the luma theme. With short description, I am happy to use the move object to place this into the tabs but I need to style it with a tag, with the product title I want to replicate this so I will have it as a h1 and h3. Below is the code I have added to description.phtml but I cannot get this to render correctly
<h3><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getName())) ?></h3>
<h4><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getShortDescription())) ?></h4>
<?= /* @escapeNotVerified */ $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
magento2 product luma-theme
add a comment |
I am trying to add the product title and short description within the product tabs on the luma theme. With short description, I am happy to use the move object to place this into the tabs but I need to style it with a tag, with the product title I want to replicate this so I will have it as a h1 and h3. Below is the code I have added to description.phtml but I cannot get this to render correctly
<h3><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getName())) ?></h3>
<h4><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getShortDescription())) ?></h4>
<?= /* @escapeNotVerified */ $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
magento2 product luma-theme
add a comment |
I am trying to add the product title and short description within the product tabs on the luma theme. With short description, I am happy to use the move object to place this into the tabs but I need to style it with a tag, with the product title I want to replicate this so I will have it as a h1 and h3. Below is the code I have added to description.phtml but I cannot get this to render correctly
<h3><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getName())) ?></h3>
<h4><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getShortDescription())) ?></h4>
<?= /* @escapeNotVerified */ $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
magento2 product luma-theme
I am trying to add the product title and short description within the product tabs on the luma theme. With short description, I am happy to use the move object to place this into the tabs but I need to style it with a tag, with the product title I want to replicate this so I will have it as a h1 and h3. Below is the code I have added to description.phtml but I cannot get this to render correctly
<h3><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getName())) ?></h3>
<h4><?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getShortDescription())) ?></h4>
<?= /* @escapeNotVerified */ $this->helper('MagentoCatalogHelperOutput')->productAttribute($block->getProduct(), $block->getProduct()->getDescription(), 'description') ?>
magento2 product luma-theme
magento2 product luma-theme
asked 15 hours ago
Paul 'Whippet' McGuanePaul 'Whippet' McGuane
1255
1255
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266084%2fadd-product-title-into-product-tabs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266084%2fadd-product-title-into-product-tabs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown