[Skip to main content](#vessel-content)

#   Add a link to read the hidden text

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 6 months ago -  9 years 6 months ago [\#267670](#267670) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Add a link to read the hidden text](/forum/2-general-talk-about-hikashop/889865-add-a-link-to-read-the-hidden-text#267670 "-- 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 &quot;Read more&quot; button when clicked to display the full description.")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

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

Hi I want to hide some text. This is made possible by the following code Code:

echo preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;row-&gt;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 6 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4OTg2NS1hZGQtYS1saW5rLXRvLXJlYWQtdGhlLWhpZGRlbi10ZXh0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 6 months ago [\#267673](#267673) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add a link to read the hidden text](/forum/2-general-talk-about-hikashop/889865-add-a-link-to-read-the-hidden-text#267673 "-- 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 &quot;Read more&quot; button when clicked to display the full description.")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4OTg2NS1hZGQtYS1saW5rLXRvLXJlYWQtdGhlLWhpZGRlbi10ZXh0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

9 years 6 months ago [\#267761](#267761) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Add a link to read the hidden text](/forum/2-general-talk-about-hikashop/889865-add-a-link-to-read-the-hidden-text#267761 "-- 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 &quot;Read more&quot; button when clicked to display the full description.")*

I found a way to deal with it. The most easily it happened with tabs. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg4OTg2NS1hZGQtYS1saW5rLXRvLXJlYWQtdGhlLWhpZGRlbi10ZXh0P3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
