- Posts: 26
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Remove Children Categories text from showing under a category
Remove Children Categories text from showing under a category
- Christina Cherry
-
Topic Author
- Offline
- Junior Member
I'd like to remove the text that says "Children's Categories" from the page. So far I can't see how to do it, can anyone assist?
The page in question is mvfdc.narromine.nsw.au where I have the parent category empty and two children's categories. It would be good to be able to hide all the stuff above the images.
Thanks in advance
Christina
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Yes you can remove this code or change it.
You might also want to consider copying the default K2 theme to create your own sub theme for different categories.
Anyway, you need to modify the category.php file which is found in components/com_k2/templates/default.
For the Page Title, look around line 22:
params->get('pageclass_sfx')?>">
Remove/modify the second line.
For the Children Categories, remove/modify this line .
{h3} div class="itemListSubCategories">{/h3}
The code you need to modify is between the H3 tags.
Simon
Please Log in or Create an account to join the conversation.
- Bryan Smith
-
- Offline
- Premium Member
- Posts: 130
remove the line 78:
Please Log in or Create an account to join the conversation.
- PrissiDe
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- that library
-
- Offline
- Senior Member
- Posts: 61
Please Log in or Create an account to join the conversation.
- Elieluen
-
- Offline
- New Member
- Posts: 1
Hi,
I too found that the above fix didn't work but after much sniffing around found that if you have a template for the site (not a k2 template; for instance i am using a rocketthemes template) then you will find another copy of this file inside that template folder at -
'templates/"yourtemplate"/html/com_k2/templates/default/category.php'
Hope that helps you :)
Eli
Please Log in or Create an account to join the conversation.
- Christina Cherry
-
Topic Author
- Offline
- Junior Member
- Posts: 26
'templates/"yourtemplate"/html/com_k2/templates/default/category.php'
OR
/public_html/components/com_k2/templates
? thanks
Please Log in or Create an account to join the conversation.
- Morten Bonde
-
- Offline
- New Member
- Posts: 7
The com_K2 folder and files should automatically be created if you install K2 after your main template. It is in this folder you can change the category.php file ('templates/"yourtemplate"/html/com_k2/templates/default/category.php')
Cheers,
Morten
Christina Cherry said:Thanks guys - except now I am confused! Creating a new template should it be placed here'templates/"yourtemplate"/html/com_k2/templates/default/category.php'OR/public_html/components/com_k2/templates? thanks
Please Log in or Create an account to join the conversation.
- Brandon G. Little
-
- Offline
- Junior Member
- Posts: 22
My template (a RocketTheme template) has its own files for K2. Editing the file in .../components/com_k2/templates/default/ won't do anything. You need to go into your templates folder and make the same edit in .../templates/*your template*/html/com_k2/templates/default/category.php
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Regards,
Simon
K2Joom.com
Please Log in or Create an account to join the conversation.
- Deborah Nix
-
- Offline
- New Member
- Posts: 7
div.itemListSubCategories h3 {
display:none;
visibility:hidden;}
Please Log in or Create an account to join the conversation.
- Christina Cherry
-
Topic Author
- Offline
- Junior Member
- Posts: 26
Please Log in or Create an account to join the conversation.
- Nicole Phillips
-
- Offline
- New Member
- Posts: 3
Elieluen said:Brittani DeArmond said:I have done this and the Children Cat is not going away. Can you please help me?
Hi,I too found that the above fix didn't work but after much sniffing around found that if you have a template for the site (not a k2 template; for instance i am using a rocketthemes template) then you will find another copy of this file inside that template folder at -'templates/"yourtemplate"/html/com_k2/templates/default/category.php'Hope that helps you :)Eli
Please Log in or Create an account to join the conversation.
- rebecca parks
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- L. Arnold
-
- Offline
- New Member
- Posts: 14
In Rockettheme Paradox this is controlled under
/components/com_k2/templates/default/category.php
Rockettheme did not, in my situation, load its own K2 K2 formatting that I could find. It would be easiest for K2 to use proper english and say "Child Categories" (IMHO)
___________ Nicole Phillips said:
Thank You So much. I've been looking for days. It worked
Elieluen said:
Brittani DeArmond said:I have done this and the Children Cat is not going away. Can you please help me?
Hi,I too found that the above fix didn't work but after much sniffing around found that if you have a template for the site (not a k2 template; for instance i am using a rocketthemes template) then you will find another copy of this file inside that template folder at -'templates/"yourtemplate"/html/com_k2/templates/default/category.php'Hope that helps you :)Eli
Please Log in or Create an account to join the conversation.
- bruce adams
-
- Offline
- New Member
- Posts: 6
cheers
Please Log in or Create an account to join the conversation.
- grandmasteryoda
-
- Offline
- New Member
- Posts: 12
in order to resove it that way:
Some may find it a more simple solution to add the following to your template.css file, or to the k2.css file:
div.itemListSubCategories h3 {
display:none;
visibility:hidden;}
is this the correct path? l/templates/rt_graffito/css-compiled/l/templates/rt_graffito/thirdparty-k2.css
and 2nd question: where exactly i have to add the code??
Apreciate!!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- User
This is the correct path although you should advise your template's documentation for overrides since some frameworks do not follow the normal overriding procedure.
As for the second question, look for the classes using your editor and apply the values. If these classes are not present simply c/p the entire snippet.
Please Log in or Create an account to join the conversation.
- Diomar
-
- Offline
- New Member
- Posts: 2
Thank you!
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Remove Children Categories text from showing under a category