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

#   Add class instead of hard coded width

##

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

Less More

- Posts: 53
- Thank you received: 2
-
-

14 years 2 months ago [\#65559](#65559) by [doogledesign](/forum/user/7753-doogledesign "View doogledesign's Profile")  *[Add class instead of hard coded width](/forum/4-how-to/65559-add-class-instead-of-hard-coded-width#65559 "The modal popup for notice.php has a hard coded width which is found here:  administrator/components/com&#95;hikashop/helpers/cart.php  And looks like this:  echo ''. ' '.  This is not optimal for responsive design and mobile templates. How can we set a class instead for the width?  Thanks")* was created by *[doogledesign](/forum/user/7753-doogledesign "View doogledesign's Profile")*

The modal popup for notice.php has a hard coded width which is found here:

administrator/components/com_hikashop/helpers/cart.php

And looks like this:

echo '&lt;div style="display:none;"&gt;'.
'&lt;a rel="{handler: \'iframe\',size: {x: 675, y: 450}}" id="hikashop_notice_box_trigger_link" ref="'.hikashop_completeLink('checkout&amp;task=notice'.$url_itemid,true).'"&gt; &lt;/a&gt;'.

This is not optimal for responsive design and mobile templates. How can we set a class instead for the width?

Thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

14 years 2 months ago [\#65744](#65744) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add class instead of hard coded width](/forum/4-how-to/65559-add-class-instead-of-hard-coded-width#65744 "The modal popup for notice.php has a hard coded width which is found here:  administrator/components/com&#95;hikashop/helpers/cart.php  And looks like this:  echo ''. ' '.  This is not optimal for responsive design and mobile templates. How can we set a class instead for the width?  Thanks")*

The popup system of joomla 1.5 and 2.5 is not meant to be responsive.
You can't add a class as the size parameters you see there are not for the CSS by for the javascript to determine the size of the popup.
For Joomla 3.0, they plan on changing the popup system and maybe will allow the size to be dynamic.

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

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

Less More

- Posts: 53
- Thank you received: 2
-
-

14 years 2 months ago [\#65869](#65869) by [doogledesign](/forum/user/7753-doogledesign "View doogledesign's Profile")  Replied by *[doogledesign](/forum/user/7753-doogledesign "View doogledesign's Profile")* on topic *[Re: Add class instead of hard coded width](/forum/4-how-to/65559-add-class-instead-of-hard-coded-width#65869 "The modal popup for notice.php has a hard coded width which is found here:  administrator/components/com&#95;hikashop/helpers/cart.php  And looks like this:  echo ''. ' '.  This is not optimal for responsive design and mobile templates. How can we set a class instead for the width?  Thanks")*

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY1NTU5LWFkZC1jbGFzcy1pbnN0ZWFkLW9mLWhhcmQtY29kZWQtd2lkdGg/dG1wbD1tYXJrZG93bg==) 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.096 seconds

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