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

#   Item page description title

##

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

14 years 1 month ago [\#69192](#69192) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  *[Item page description title](/forum/2-general-talk-about-hikashop/69192-item-page-description-title#69192 "I want to have a fixed title for the product description. I have added to the existing code  ?php  echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;product&#95;description)); ?&gt; Which works fine. When an alternate characteristic is selected the title vanishes. I've tried adding a message above this which is visible on the initial load of the page but that to vanishes when a characteristic is selected.  Where else do I need to make this change to retain the description title in place?  Thanks  Crispin")* was created by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")*

I want to have a fixed title for the product description. I have added to the existing code

&lt;?php
echo '&lt;div class="section-title"&gt;Bouquet description&lt;/div&gt;';
echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));
?&gt;
Which works fine. When an alternate characteristic is selected the title vanishes. I've tried adding a message above this which is visible on the initial load of the page but that to vanishes when a characteristic is selected.

Where else do I need to make this change to retain the description title in place?

Thanks

Crispin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY5MTkyLWl0ZW0tcGFnZS1kZXNjcmlwdGlvbi10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 month ago [\#69294](#69294) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Item page description title](/forum/2-general-talk-about-hikashop/69192-item-page-description-title#69294 "I want to have a fixed title for the product description. I have added to the existing code  ?php  echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;product&#95;description)); ?&gt; Which works fine. When an alternate characteristic is selected the title vanishes. I've tried adding a message above this which is visible on the initial load of the page but that to vanishes when a characteristic is selected.  Where else do I need to make this change to retain the description title in place?  Thanks  Crispin")*

Hi nikmackey,

You have to add this line in the view "product / show" too.
Before: Code:

&lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$variant-&gt;product_description));?&gt;

The following user(s) said Thank You: [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY5MTkyLWl0ZW0tcGFnZS1kZXNjcmlwdGlvbi10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")**
- [![nikmackey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7626-nikmackey "View nikmackey's Profile") Topic Author
- [ Offline](/forum/user/7626-nikmackey)

Less More

- Posts: 60
- Thank you received: 1
-
-

14 years 1 month ago [\#69502](#69502) by [nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")  Replied by *[nikmackey](/forum/user/7626-nikmackey "View nikmackey's Profile")* on topic *[Re: Item page description title](/forum/2-general-talk-about-hikashop/69192-item-page-description-title#69502 "I want to have a fixed title for the product description. I have added to the existing code  ?php  echo JHTML::&#95;('content.prepare',preg&#95;replace('##i','',$this-&gt;element-&gt;product&#95;description)); ?&gt; Which works fine. When an alternate characteristic is selected the title vanishes. I've tried adding a message above this which is visible on the initial load of the page but that to vanishes when a characteristic is selected.  Where else do I need to make this change to retain the description title in place?  Thanks  Crispin")*

Perfect, works a treat

Thanks you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY5MTkyLWl0ZW0tcGFnZS1kZXNjcmlwdGlvbi10aXRsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.042 seconds

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