Add a link to read the hidden text

  • Posts: 410
  • Thank you received: 15
7 years 5 days 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 4 days ago by neo191987.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 4 days 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: 410
  • Thank you received: 15
7 years 4 days 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.067 seconds
Powered by Kunena Forum