- Posts: 4
COMMUNITY FORUM
K2 Tools Side Menu, How to target Parent UL?
- will.chen
- Topic Author
- Offline
- New Member
Less
More
12 years 1 month ago #103016
by will.chen
K2 Tools Side Menu, How to target Parent UL? was created 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.
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.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 4 weeks ago #103017
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: K2 Tools Side Menu, How to target Parent UL?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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.
- Justin Thomas
- Offline
- Senior Member
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.
- Justin Thomas
- Offline
- Senior Member
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
Many thanks
Please Log in or Create an account to join the conversation.