- Posts: 431
- Thank you received: 19
Add a link to read the hidden text
9 years 5 months ago - 9 years 5 months ago #267670
by neo191987
Add a link to read the hidden text was created by neo191987
-- HikaShop version -- : 3,0,1
Hi I want to hide some text. This is made possible by the following code
How to add a link to read the hidden text.
My goal is to hide part of the product description to is not so great and bottom have "Read more" button when clicked to display the full description.
Hi I want to hide some text. This is made possible by the following code
Code:
echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->product_description);
My goal is to hide part of the product description to is not so great and bottom have "Read more" button when clicked to display the full description.
Last edit: 9 years 5 months ago by neo191987.
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267673
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Add a link to read the hidden text
Hello,
It depends on the context ; but the best would be write your HTML link and use " hikashop_frontendLink " to generate the URL based on the elements you have (but without any context ; it will be more than difficult).
So I would recommend you to take a look at the rest of the content in the view you're modifying.
Regards,
It depends on the context ; but the best would be write your HTML link and use " hikashop_frontendLink " to generate the URL based on the elements you have (but without any context ; it will be more than difficult).
So I would recommend you to take a look at the rest of the content in the view you're modifying.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267761
by neo191987
Replied by neo191987 on topic Add a link to read the hidden text
I found a way to deal with it. The most easily it happened with tabs.
Please Log in or Create an account to join the conversation.
Time to create page: 0.193 seconds