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

#   related products and small css problem

##

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

Less More

- Posts: 117
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#20793](#20793) by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile")  *[related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20793 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")* was created by *[sarsells](/forum/user/2567-sarsells "View sarsells's Profile")*

Hi Nicolas
I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.

My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links)
in my main template I have the following
a {
color: #006699;
text-decoration: none;
}

a:hover, a:focus {
color: #999999;
text-decoration: none;
}
a:active, {
color: #cc3e3e;
text-decoration: none;
}

In my style css I have
a {
color: #333333;
text-decoration: none;
}

a.readon {
color: #333333;
}

\#ja-container2 ul.menu li li a:hover,
\#ja-container2 ul.menu li li a:focus {
color: #999999;
}

\#ja-container2 ul.menu li li a:active,{
color: #cc3e3e;
}

\#ja-container2 ul.menu li.active a span {
background: url(../../../images/bullet.gif) no-repeat 5px;
}

.bignumber {
color: #333333;
}

\#ja-container2 ul.menu li.active a {
color: #cc3e3e;

However, I do not appear to havean active state showing up.

Thanks for your help

Sarah  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_11-20110707.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_11-20110707.png "&#91;img")

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_9-20110707.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_9-20110707.png "&#91;img")

- [ ![Picture&#95;11-20110707.png](/forum/attachment/1417) ](/forum/attachment/1417 "...1-20110707.png") [ ](/forum/attachment/1417?download=1 "...1-20110707.png")
- [ ![Picture&#95;9-20110707.png](/forum/attachment/1418) ](/forum/attachment/1418 "...9-20110707.png") [ ](/forum/attachment/1418?download=1 "...9-20110707.png")

Last edit: 15 years 4 months ago by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile").

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

15 years 4 months ago [\#20805](#20805) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20805 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")*

1. You should not publish your module in joomla. You should publish it in the "modules under the product page" option of the configuration of hikashop under the tab Display.

2. It should be:
\#ja-container2 ul.hikashop_category_list li a:active{
color: #cc3e3e;
}

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

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

Less More

- Posts: 117
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#20807](#20807) by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile")  Replied by *[sarsells](/forum/user/2567-sarsells "View sarsells's Profile")* on topic *[Re: related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20807 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")*

I have unpublished the related items module, and created a new module in hika shop display content modules, but nothing is appearing on the pages, where I have added related items?

Thanks for the CSS help,however, I added it to the template css and I still do not have an active state. I really cant work out why?

[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_12-20110707.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_12-20110707.png "&#91;img")

- [ ![Picture&#95;12-20110707.png](/forum/attachment/1419) ](/forum/attachment/1419 "...2-20110707.png") [ ](/forum/attachment/1419?download=1 "...2-20110707.png")

Last edit: 15 years 4 months ago by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile").

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

15 years 4 months ago [\#20820](#20820) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20820 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")*

1. I didn't told you to create a new module but just to publish your existing module in the option "modules under the product page" of the configuration of hikashop under the tab Display instead of having it published in joomla modules manager.

2. Maybe another thing is overriding it. You should try with that then:
\#ja-container2 ul.hikashop_category_list li a:active{
color: #cc3e3e !important;
}

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

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

Less More

- Posts: 117
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#20837](#20837) by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile")  Replied by *[sarsells](/forum/user/2567-sarsells "View sarsells's Profile")* on topic *[Re: related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20837 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")*

So sorry, but I still cant sort the related items problem. I have now unpublished the module within joomla but have it published in hikashop&gt;configuration&gt;display tab&gt; content modules. The content is still doubling up, and not just showing itms that have been added as related. Screen shot of module attached.

Thanks once again

Sarah  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_14-20110707.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Picture_14-20110707.png "&#91;img")

- [ ![Picture&#95;14-20110707.png](/forum/attachment/1420) ](/forum/attachment/1420 "...4-20110707.png") [ ](/forum/attachment/1420?download=1 "...4-20110707.png")

Last edit: 15 years 4 months ago by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile").

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

15 years 4 months ago [\#20842](#20842) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20842 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")*

That's not were you should publish it.
You should publish it in the option "modules under the product page" of the configuration of hikashop under the tab Display:
[ www.hikashop.com/media/doc/config\_form\_display.png](http://www.hikashop.com/media/doc/config_form_display.png)

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

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

Less More

- Posts: 117
- Thank you received: 0
-
-

15 years 4 months ago [\#20843](#20843) by [sarsells](/forum/user/2567-sarsells "View sarsells's Profile")  Replied by *[sarsells](/forum/user/2567-sarsells "View sarsells's Profile")* on topic *[Re: related products and small css problem](/forum/4-how-to/20793-related-products-and-small-css-problem#20843 "Hi Nicolas I have created a related items module. It works well, however I only want it to display the items I have added in the product menu, as related. At the moment it is duplicating all items in the same category on the category page. Please see screen shots.  My Css problem is, that I want to have a different colour, for the active state in the links in the left hand colums (or all active links) in my main template I have the following a { color: #006699; text-decoration: none; }  a:hover, a:focus { color: #999999; text-decoration: none; } a:active, { color: #cc3e3e; text-decoration: none; }  In my style css I have a { color: #333333; text-decoration: none; }  a.readon { color: #333333; }  #ja-container2 ul.menu li li a:hover, #ja-container2 ul.menu li li a:focus { color: #999999; }  #ja-container2 ul.menu li li a:active,{ color: #cc3e3e; }  #ja-container2 ul.menu li.active a span { background: url(../../../images/bullet.gif) no-repeat 5px; }  .bignumber { color: #333333; }  #ja-container2 ul.menu li.active a { color: #cc3e3e;  However, I do not appear to havean active state showing up.  Thanks for your help  Sarah")*

Thank you. It is sorted now. I am dyslexic, and sometimes it is hard to spot things. I looked and looked and just fif not see it!

Kind regards
Sarah

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

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