cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 - What is the recommended practice for adding custom text in product page

Highlighted

Magento 2.3 - What is the recommended practice for adding custom text in product page

I want to add custom text to the product page,

 

Screenshot : https://snipboard.io/v0A5pj.jpg

 

Here how can i achieve this task, which is the recommended way to do that: Module (or) Events Observer (or) Preference. What kind of workout safe for future version upgrade?

1 REPLY 1
Highlighted

Re: Magento 2.3 - What is the recommended practice for adding custom text in product page

Hi @Aveeva 

 

Try to open path hint, and check in which phtml file you want to edit text.
Override html file in your theme first then add your custom text.

Run below command:

php bin/magento cache:flush

Text will reflect on product detail page.

It may help you!
Thank you.