Keyword

K2 Tools Side Menu, How to target Parent UL?

  • will.chen
  • will.chen's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 month ago #103016 by will.chen
Hi. I see when I click on a category or subcategory. K2 php will add a class="activeCategory" to that category. But is there any way I can modify the php so it will also add a "activeparrent" class to the parrent category? I can then use this class to add css styles.

For example:

<div class="k2CategoriesListBlock">
<ul level0>
<li>
<ul class="level1 activeparrent" I want to add a class to only parent that have activeCategory children >
<li class="activeCategory"></li>
<li></li>
<li></li>
</ul>
<li>
<ul class="level1">
<li></li>
</ul>
</li>
</ul>
</div>

Any sort of help is greatly appreciated. Thank you.

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

More
12 years 4 weeks ago #103017 by Lefteris
Hi. No, you cannot modify this without messing with code. The file generating this is /modules/mod_k2_tools/helper.php.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • will.chen
  • will.chen's Avatar Topic Author
  • Offline
  • New Member
More
12 years 4 weeks ago #103018 by will.chen
Replied by will.chen on topic Re: K2 Tools Side Menu, How to target Parent UL?
Can you please give me some tip on how to modify this? I will do it at my own risk.

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

More
11 years 2 weeks ago #103019 by Justin Thomas
Replied by Justin Thomas on topic Re: K2 Tools Side Menu, How to target Parent UL?
Did you get anywhere with this? I am running up against the same issue so wondered if you resolved it.

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

More
11 years 2 weeks ago #103020 by Justin Thomas
Replied by Justin Thomas on topic Re: K2 Tools Side Menu, How to target Parent UL?
I've accomplished it with the standard menu item but it would still be useful for you to publish any solution you came up with.

Many thanks

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


Powered by Kunena Forum