Skip to main content

Add a link to read the hidden text

More
9 years 5 months ago - 9 years 5 months ago #267670 by neo191987
-- HikaShop version -- : 3,0,1

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);
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.
Last edit: 9 years 5 months ago by neo191987.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #267673 by Jerome
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,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #267761 by neo191987
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
Powered by Kunena Forum