Active category in bold

  • Posts: 344
  • Thank you received: 3
11 years 2 months ago #163083

Joomla 2.5.20
Hikashop 2.3.1 (latest version)

In the "HikaShop Content Module" module all my categories are displaying with all the sub-categories (accordion style).
When a user click on one of the sub-categores I want it to be displayed in "bold" so that the user can se where he is.
Please see picture below to see what I mean



Is this possible ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
11 years 2 months ago #163122

Hi,

Yes that's possible.
The system normally adds the classes active and current to the current category in the category listing module.
So such simple CSS should do the trick:
.current{ font-weight: bold !important; }

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
11 years 2 months ago #163183

Tnx for reply.
I am using firebug and when I inspect the module I can't find anywhere to place the code. When I change something It changes all the sub-categories within the category. I can't find the code for the active category.

Any advice ?

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
11 years 2 months ago #163186

You need to add that CSS in the frontend CSS of HikaShop:
www.hikashop.com/support/support/documen...ize-the-display.html

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 5 months ago #195337

Joomla 3.3.6
Hikashop 2.3.5
Responsive hikashop template from Icetheme

These are my settings for hikashop category module. (see encloused image)



So now my web site are displaying all categories simultaneously together with the sub-categories. I think this is a good solution since I have so many categories.

But when a user clicks on a category i.e "bilprodukter/car products" I want it to be dispayed in bold(the active category), so that the user remember what category he clicked.

....and when a user click on a product in that category I want it to still be displayeded in bold so that he can see what category the product belongs to....

Is this possible to fix ?

Tnx =)

Attachments:
Last edit: 10 years 5 months ago by river.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #195376

Hi,

Using CSS property like that should do the job:

.hikashop_categories_listing_main .pane-toggler-down .active a, .hikashop_categories_listing_main .pane-toggler-down .active h3{
    font-weight: bold !important;
}

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 5 months ago #195468

Hi. Tnx for reply.

I pasted the code into the hikashop Front-end custom CSS File
....and I also tried to paste it into my Trendyshop (Icetheme.com) template custom.css file

But it did not work. I did not see any changes.

Any avice ?

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 5 months ago #195472

Hi,

Please provide a link to the page so that we can see what you have and analyze the HTML and CSS on the page.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 5 months ago #195529

Hi !

URL is: www.kvikki.no

Tnx

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 5 months ago #195600

Hi,

Please provide a link to the direct page.
The one where there is the content that your want to customize....

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 5 months ago #197028

Yes I can

When a user click on a category i.e. "Bilprodukter" on the right side I want the text "Bilprodukter"(in the module) to be in bold, the active category.

URL
www.kvikki.no/shop/kategori/bilprodukter

and when a user clicks a product in this category I want the category text to still be displayed in bold, since this is the category the product is located in.

This way the customer can always see what category the product is located in.

Please see encloused image.



Any advice on how to do this ?

Attachments:
Last edit: 10 years 5 months ago by river.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #197052

Hello,
Using that kind of CSS code will probably do the job :

li.hikashop_category_list_item.current.active {
  font-weight: bold !important;
}

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 5 months ago #197163

Excellent. This works !

When I click on a category the active category in the hikashop module is in bold.

..but when I click on a product in that category the text is not bold anymore, any advice on how to fixt this ?

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 5 months ago #197178

Hi,

Turn off the "simplified breadcrumb" option of the HikaShop configuration and that should do it.

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 3
10 years 2 months ago #207809

Hi all,

I have a similar problem.
I´m using this javascript snippet to identify the curent active link and style this one with css using the class "active".

jQuery(document).ready(function($){
var url = window.location.href;
$('#mypagemenu .menu li a').filter(function() {
return this.href == url;
}).addClass('active');
});

That works fine for all menu items that refer to articles.
In all cases (independently to which type of content the menu item refers) the class "current active" will be added to the active menu item.
But once the menu item refers to a Hika product category it does not work any longer, so the active menu item will no longer be highlighted by using special css code.

Any idea?

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #207821

Hi,

First of all please check if there is not any javascript conflict via the browser console.
Then compare the current url with the ones present in the menus, there could be some specificities in the urls.

Please give us more informations about your category menu, its settings, etc.

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 3
10 years 2 months ago #207998

Hi Xavier,

there is no javascript conflict. As I mentioned it works for all other menu items.
It also works if I choose the the Menu Item Type "Hikashop Products listing".
But after i selected a category in the related module of the product category the 'current active function' does not work anymore (see screenshot).

Btw: If such an hikashop category is the active page I also have issues with the SJ Mini Cart Pro module. In this case the mini cart does not scroll out on the mouse-over event anymore. See this post:
https://www.hikashop.com/forum/integrations/875429-sj-mini-cart-pro-see-character-as-other-product.html

The URL has this structure: mydomain.com/en/category1
The related menu item has the same name - in that case: category1
My category menu is a regular joomla menu styled with css. Not sure what you mean with "its settings".

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 months ago #208017

Hi,

Can you give a link to a page where this doesn't work on your website so that we can analyze the issue ?

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 3
10 years 2 months ago #208075

Hi Nicolas,

the site is offline as long as it´s under construction.

There is a jQuery conflict with the sj minicart module. I´m discussing that with the developers of SmartAddons.
But for the main menu there shouldn´t be a javascript issue.

The only thing I can tell you is that I´m using this javascript snippet:

jQuery(document).ready(function($){
var url = window.location.href;
$('#mypagemenu .menu li a').filter(function() {
return this.href == url;
}).addClass('active');
});

and this css:
#mypagemenu .menu li a.active, #mypagemenu .menu .active li a {ANYSTYLE;}

As mentioned it works for all menu items as long I don´t choose a category in the module for the product listing.
If I choose an Hikashop product listing for a menu items it also works, but after I selected a category for that product listing the error occurs. :S

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 months ago #208080

Hi,

Hard to say anything without looking at the URLs, the javascript, the behaviors of the website when a link is clicked etc, especially since it is done with custom javascript for custom HTML that we're not familiar with.
Please come back when you but a first version online so that we can look at it at that point.

Please Log in or Create an account to join the conversation.

Time to create page: 0.131 seconds
Powered by Kunena Forum