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

#   How to add content beside a dropdown

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 2 days ago [\#72900](#72900) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  *[How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#72900 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")* was created by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")*

When the users view a particular product, there are 2 dropdown (select) boxes
that allow them to specify the color and size wanted:

Please Select Color

Please Select Size

I want to add a 'Help me determine the right size' link out to the right side
of the "Please Select Size" dropdown box so that when the link is clicked on
it will open up a small window of content, or maybe something like a tooltip.

Here is the code for that particular dropdown:
Code:

&lt;select id="hikashop_product_characteristic_10" name="hikashop_product_characteristic[10]" class="inputbox" size="1" onchange="return hikashopUpdateVariant(this);"&gt; &lt;option value="38" selected="selected"&gt;Please Select Size&lt;/option&gt; &lt;option value="21"&gt;5&lt;/option&gt; &lt;option value="22"&gt;6&lt;/option&gt; &lt;option value="3"&gt;7&lt;/option&gt; &lt;option value="4"&gt;8&lt;/option&gt; &lt;option value="5"&gt;9&lt;/option&gt; &lt;option value="6"&gt;10&lt;/option&gt; &lt;option value="7"&gt;11&lt;/option&gt; &lt;/select&gt;

How can I add a link beside the dropdown box?
What file needs to be changed?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyOTAwLWhvdy10by1hZGQtY29udGVudC1iZXNpZGUtYS1kcm9wZG93bj90bXBsPW1hcmtkb3du) 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 2 days ago [\#73036](#73036) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73036 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

Hi,

I think that the easiest way is to edit the view "product / show_block_characteristic" in HikaShop &gt; Display &gt; Views.
And replace the content by: Code:

&lt;?php JHTML::_('behavior.tooltip'); if (!empty ($this-&gt;element-&gt;characteristics)) { ?&gt;&lt;div id="hikashop_product_characteristics" class="hikashop_product_characteristics"&gt;&lt;?php echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element, $this-&gt;params); if($this-&gt;element-&gt;characteristics[10]){ echo "&lt;span style='position:relative;top:-18px; left: 100px;'&gt;"; echo JHTML::tooltip('This is the tooltip text', 'Tooltip title', 'tooltip.png', '', 'http://www.joomla.org'); echo "&lt;/span&gt;"; } ?&gt;&lt;/div&gt;&lt;?php } ?&gt;

In this code replace the value "10" by the id of your size characteristic, you can find it in HikaShop &gt; Product &gt; Characteristics.

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 2 days ago [\#73086](#73086) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73086 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

Hello Xavier,

Thanks for the help!

Here is the code for "product / show_block_characteristic" now:
Code:

&lt;?php JHTML::_('behavior.tooltip'); if (!empty ($this-&gt;element-&gt;characteristics)) { ?&gt;&lt;div id="hikashop_product_characteristics" class="hikashop_product_characteristics"&gt;&lt;?php echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element, $this-&gt;params); if ($this-&gt;element-&gt;characteristics[10]) { echo "&lt;span style='position:relative; top:-18px; left:145px;'&gt;"; echo JHTML::tooltip( 'This is the tooltip text', 'Tooltip title', 'tooltip.png', '', 'http://www.joomla.org' ); echo "&lt;/span&gt;"; } ?&gt;&lt;/div&gt;&lt;?php } ?&gt;

The information icon is displayed where I want it, but when I hover over it, I never see
the tooltip. If I click the icon, I am taken to the URL as expected, but when I hover
over the icon, nothing happens.

I wonder why the tooltip is not displayed when I hover over the icon?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyOTAwLWhvdy10by1hZGQtY29udGVudC1iZXNpZGUtYS1kcm9wZG93bj90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

14 years 1 day ago [\#73231](#73231) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73231 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

Can you give a link to that page so that we can see the result ?

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 1 day ago -  14 years 23 hours ago [\#73241](#73241) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73241 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

Sure, here's a link you can use...

[link removed since it no longer applies to topic]

Last edit: 14 years 23 hours ago by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile"). Reason: link no longer relevant

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyOTAwLWhvdy10by1hZGQtY29udGVudC1iZXNpZGUtYS1kcm9wZG93bj90bXBsPW1hcmtkb3du) 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 day ago [\#73315](#73315) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73315 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

Hi,

I think that the problem come from you template.
Try to change the template to see if the tooltip appear, or search in the base.css or custom.css files of your template if there is not a property which hide the tooltip.

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 1 day ago [\#73360](#73360) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73360 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

You are right...

When I changed to a different template, the tooltip displayed properly.

It is not working with my current template.

The template that I'm using has over a dozen CSS files.
I went through each one (searching for the word 'tip'),
but I never found any mention of tooltip or tip in any
of those .css files.

If any of those files were 'hiding' the tooltip, I would
have been able to find the word 'tip' in one of them, right?

Maybe I can just add some default CSS to handle the tooltip
somewhere. What do you think?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzcyOTAwLWhvdy10by1hZGQtY29udGVudC1iZXNpZGUtYS1kcm9wZG93bj90bXBsPW1hcmtkb3du) 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 day ago [\#73379](#73379) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: How to add content beside a dropdown](/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown#73379 "When the users view a particular product, there are 2 dropdown (select) boxes that allow them to specify the color and size wanted:  Please Select Color  Please Select Size  I want to add a 'Help me determine the right size' link out to the right side of the &quot;Please Select Size&quot; dropdown box so that when the link is clicked on it will open up a small window of content, or maybe something like a tooltip.  Here is the code for that particular dropdown:  How can I add a link beside the dropdown box? What file needs to be changed?  Thanks.")*

Yes, you can try to add default CSS on the class .hasTip{}.

Or contact your template provider. I think you can too find a solution on google, because some people should have the same issue.

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

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

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

[](#top)
