How can i add a note on product detail page in admin under "Images And Videos" tab in Magento 2.

Any help would be appricicated.

Product Detail Page Admin


2 Answers 2


You can add text in gallery.phtml file

Override this file


Add you text on top of page

 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.

// @codingStandardsIgnoreFile

/** @var $block \Magento\Catalog\Block\Adminhtml\Product\Helper\Form\Gallery\Content */
$elementName = $block->getElement()->getName() . '[images]';
$formName = $block->getFormName();
<div><?php echo $block->escapeHtml(__('Add Your Text Here'));?></div>
<div class="row">


enter image description here

  • Thanks, I am also trying the same way. But does it possible using UI Component ?? Feb 15, 2018 at 7:22

After enable the template hint path from backend Store >> Configuration >> Advanced >> Developer >> Debug >> Enabled Template Path Hints for Admin, you will able to identify the template path.

For gallery section, you can Override the below template file and can add your additional text here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.