Add a link to read the hidden text

  • Posts: 429
  • Thank you received: 19
7 years 8 months ago #267670

-- HikaShop version -- : 3,0,1

Hi I want to hide some text. This is made possible by the following 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: 7 years 8 months ago by neo191987.

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

  • Posts: 26168
  • Thank you received: 4030
  • MODERATOR
7 years 8 months ago #267673

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 429
  • Thank you received: 19
7 years 8 months ago #267761

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.057 seconds
Powered by Kunena Forum